1 2 3 4 5 6 7 8 9 10 11 12
/var/log/nginx/*.log { su @USER@ @GROUP@ rotate 10 notifempty size 5M compress delaycompress sharedscripts postrotate /etc/rc.d/rc.nginx rotate endscript }