1 2 3 4 5 6 7 8 9 10
/var/log/nginx/*log { missingok notifempty create 640 http log sharedscripts compress postrotate test ! -r /run/nginx.pid || kill -USR1 `cat /run/nginx.pid` endscript }