Question about restarting nginx

Maxim Dounin mdounin at mdounin.ru
Fri Jan 3 20:50:10 UTC 2014


Hello!

On Fri, Jan 03, 2014 at 09:45:38PM +0100, oscaretu . wrote:

> One question comes to my mind: Why doesn't nginx write something to the
> error log file when it restarts? (for example, with kill -HUP), just as
> Apache does.

It does:

2014/01/04 00:47:33 [notice] 4529#0: signal 1 (SIGHUP) received, reconfiguring
2014/01/04 00:47:33 [notice] 4529#0: reconfiguring
2014/01/04 00:47:33 [notice] 4529#0: using the "kqueue" event method
2014/01/04 00:47:33 [notice] 4529#0: start worker processes
2014/01/04 00:47:33 [notice] 4529#0: start worker process 57418
2014/01/04 00:47:34 [notice] 4529#0: signal 23 (SIGIO) received
2014/01/04 00:47:34 [notice] 4530#0: gracefully shutting down
2014/01/04 00:47:34 [notice] 4529#0: signal 23 (SIGIO) received
2014/01/04 00:47:34 [notice] 4530#0: exiting
2014/01/04 00:47:34 [notice] 4530#0: exit
2014/01/04 00:47:34 [notice] 4529#0: signal 20 (SIGCHLD) received
2014/01/04 00:47:34 [notice] 4529#0: worker process 4530 exited with code 0
2014/01/04 00:47:34 [notice] 4529#0: signal 23 (SIGIO) received
2014/01/04 00:47:34 [notice] 4529#0: signal 23 (SIGIO) received
2014/01/04 00:47:34 [notice] 4529#0: signal 23 (SIGIO) received

But your error_log have to be configured to log messages at notice level.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx-devel mailing list