Welcome! Log In Create A New Profile

Advanced

HUP signal to nginx doesn't work Ubuntu14

June 03, 2015 06:08PM
Hello,
Am seeing an issue while sending HUP signal to nginx (for config reload) on Ubuntu14. It just kills the master process & doesn't start the new worker processes. The same works just fine on CentOS 6.6 64-bit

$ ps -eaf | grep nginx
zimbra 10860 1 0 16:05 ? 00:00:00 nginx: master process /opt/zimbra/nginx/sbin/nginx -c /opt/zimbra/conf/nginx.conf
zimbra 10861 10860 0 16:05 ? 00:00:00 nginx: worker process
zimbra 10862 10860 0 16:05 ? 00:00:00 nginx: worker process
zimbra 10863 10860 0 16:05 ? 00:00:00 nginx: worker process
zimbra 10864 10860 0 16:05 ? 00:00:00 nginx: worker process
zimbra 18638 25945 0 16:22 pts/0 00:00:00 grep nginx
zimbra 19994 1 0 Jun02 ? 00:01:51 /usr/bin/perl -w /opt/zimbra/libexec/zmstat-nginx
$
$ kill -HUP 10860
$
$ ps -eaf | grep nginx
zimbra 10861 1 0 16:05 ? 00:00:00 nginx: worker process <------ same old worker processes & master process is killed
zimbra 10862 1 0 16:05 ? 00:00:00 nginx: worker process
zimbra 10863 1 0 16:05 ? 00:00:00 nginx: worker process
zimbra 10864 1 0 16:05 ? 00:00:00 nginx: worker process
zimbra 18666 18641 0 16:22 pts/1 00:00:00 tail -f log/nginx.log
zimbra 18986 25945 0 16:23 pts/0 00:00:00 grep nginx
zimbra 19994 1 0 Jun02 ? 00:01:51 /usr/bin/perl -w /opt/zimbra/libexec/zmstat-nginx
$

From nginx.log, i can see the SIGHUP is received
2015/06/03 16:23:14 [notice] 10860#0: signal 1 (SIGHUP) received, reconfiguring
2015/06/03 16:23:14 [debug] 10860#0: wake up, sigio 0
2015/06/03 16:23:14 [notice] 10860#0: reconfiguring
2015/06/03 16:23:14 [debug] 10860#0: posix_memalign: 00000000021EAA50:16384 @16
2015/06/03 16:23:14 [debug] 10860#0: posix_memalign: 000000000223D570:32768 @16

Any ideas on why this doesn't work on ubuntu only ?

Thanks
-Kunal
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

HUP signal to nginx doesn't work Ubuntu14

kunalvjti June 03, 2015 06:08PM

Re: HUP signal to nginx doesn't work Ubuntu14

Maxim Dounin June 03, 2015 10:16PM

Re: HUP signal to nginx doesn't work Ubuntu14

kunalvjti June 04, 2015 01:22PM

Re: HUP signal to nginx doesn't work Ubuntu14

EuroHoster June 05, 2015 01:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 176
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