/data/nginx/*.log { daily rotate 3 missingok notifempty compress sharedscripts postrotate if [ -s /usr/local/nginx/logs/nginx.pid ]; then nginx -s reload; fi kill "$(pgrep goaccess)" endscript }