Comment 2 for bug 1450770

Revision history for this message
Robert Hooper (7ob) wrote :

I have found the command `service nginx rotate` was running in the init.d script on another server:
start-stop-daemon --stop --signal USR1 --quiet --pidfile /run/nginx.pid --name nginx
Running it seems to fix my problem.

I have added this to the postrotate part of logrotate and commented out what was there before.
#invoke-rc.d nginx rotate >/dev/null 2>&1
start-stop-daemon --stop --signal USR1 --quiet --pidfile /run/nginx.pid --name nginx