Nginx does not re-open log files on SIGUSR1.
john at feurix.com
Mon Jan 3 16:56:27 MSK 2011
Is there a reason why every script or suggestion I see floating around
the net still does it "the hard way" (and I wonder, even on _this_
$ kill -USR1 `cat /var/run/nginx.pid`
$ pkill -USR1 -f ^nginx:.*master.*process
instead of simply using nginx's built-in way to do this:
$ nginx -s reopen
After all, this is supported since 0.7.53.
It should also work fine if using multiple nginx instances, just pass
the path to the configuration file of the specific instance with -c.
See also http://wiki.nginx.org/CommandLine or `nginx -h`:
-s signal : send signal to a master process: stop, quit, reopen, reload
More information about the nginx