Comment 8 for bug 1450770

Revision history for this message
Niels Böhm (blubberdiblub) wrote :

Replacing "invoke-rc.d" by "service" and "rotate" by "reload" in the logrotate config file solves the problem for us. The logs are now rotated and afterwards nginx is successfully made to write to the new log files and we don't get error mails from cron/logrotate.

--- nginx.orig 2015-04-07 23:07:11.000000000 +0000
+++ nginx 2015-07-09 07:45:45.057176379 +0000
@@ -13,6 +13,6 @@
   fi \
  endscript
  postrotate
- invoke-rc.d nginx rotate >/dev/null 2>&1
+ service nginx reload >/dev/null 2>&1
  endscript
 }