1 2 3 4 5 6 7 8
/var/log/nginx/*log { daily create 640 http log compress postrotate [ ! -f /run/nginx.pid ] || kill -USR1 `cat /run/nginx.pid` endscript }