/data/nginx/*.log { daily rotate 3 missingok notifempty compress sharedscripts postrotate nginx -s reload endscript }