Created attachment 375644 [details] Updated nginx.logrotate The cron job running logrotate occasionally generates the following output: gzip: stdin: file size changed while zipping error: error running shared postrotate script for '/var/log/nginx/*_log ' This seems to happen because it takes some time for nginx to re-open its log files. The issue would likely be solved by adding the `delaycompress` directive to the logrotate file.
Comment on attachment 375644 [details] Updated nginx.logrotate --- files/nginx.logrotate 2013-05-04 18:48:42.863776796 +0200 +++ - 2014-04-25 16:04:03.905605808 +0200 @@ -4,6 +4,7 @@ /var/log/nginx/*_log { missingok + delaycompress sharedscripts postrotate test -r /run/nginx.pid && kill -USR1 `cat /run/nginx.pid`
Done in bump to 1.7.2, thanks to jbergstroem.