Nginx does not re-open log files on SIGUSR1.

Piotr Sikora piotr.sikora at frickle.com
Mon Jan 3 17:14:56 MSK 2011


Hi John,

> 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_
> mailing list):
>
>  $ kill -USR1 `cat /var/run/nginx.pid`
>  $ pkill -USR1 -f ^nginx:.*master.*process

Yes, there is: consistency.

Pretty much every daemon supports "the standard way" for control (graceful 
restarts, termination, reloads, etc), so people that use other daemons 
prefer to use the method that is consistent among all of them instead of 
using daemon-specific one.

Best regards,
Piotr Sikora < piotr.sikora at frickle.com >




More information about the nginx mailing list