Question about restarting nginx
oscaretu .
oscaretu at gmail.com
Fri Jan 3 20:45:38 UTC 2014
Hello.
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.
For example, in Apache, after kill -HUP $apache_pid, I can see in the error
log file:
[Tue Jan 22 11:42:50 2013] [notice] SIGHUP received. Attempting to restart
[Tue Jan 22 11:42:51 2013] [notice] Digest: generating secret for digest
authentication ...
[Tue Jan 22 11:42:51 2013] [notice] Digest: done
[Tue Jan 22 11:42:52 2013] [notice] Apache/2.2.14 (Unix) PHP/5.3.1
mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured --
resuming normal operation
This way I can easily check if everything has gone OK in the restart, just
using
kill -1 $(cat httpd.pid); tail -f error_log
Can this be added by default to nginx? Or there is any other simple form to
check that a restart has gone well?
Greetings,
Oscar
--
Oscar Fernandez Sierra
oscaretu at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20140103/a379ad9e/attachment.html>
More information about the nginx-devel
mailing list