Nginx does not re-open log files on SIGUSR1.

Piotr Sikora piotr.sikora at frickle.com
Mon Jan 3 18:34:07 MSK 2011


Hi,

> I don't argue that the most common set of signals and their similar
> handlers in various daemons (HUP=reload, TERM=clean shutdown,
> QUIT=graceful shutdown...) make life a lot easier for most administrators.
>
> But I'm not convinced that this is the case here. As soon as USR* and
> whatever other custom signals are handled in a way that is special to
> the specific daemon, there's not really a point to "consistency" any
> more. It _is_ special already.

USR1 is pretty much "standard" for log files re-open.

> For the most basic set of control signals I agree with you,
> but it still has the downside of having to find the pid first (and
> hardcoding parameters of the daemon configuration into external scripts).

With "pkill" you don't have to ;)

Anyway, I'm not saying that sending signals is better than "nginx -s", I'm 
just saying it's more consistent and that's why I'm using it.

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




More information about the nginx mailing list