Welcome! Log In Create A New Profile

Advanced

Question about restarting nginx

oscaretu .
January 03, 2014 03:46PM
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@gmail.com
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Question about restarting nginx

oscaretu . 747 January 03, 2014 03:46PM

Re: Question about restarting nginx

Maxim Dounin 334 January 03, 2014 03:52PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 141
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready