/data/logs/nginx/*/*/*.log { daily rotate 7 size 10M compress missingok notifempty dateext sharedscripts postrotate endscript } /data/logs/nginx/*/*.log { daily rotate 7 size 10M compress missingok notifempty dateext sharedscripts postrotate endscript } /data/logs/nginx/*.log { daily rotate 7 size 10M missingok notifempty dateext sharedscripts postrotate if [ -f /var/run/nginx.pid ]; then kill -USR1 `cat /var/run/nginx.pid` fi endscript }