HUP signal to nginx doesn't work Ubuntu14
Kunal Pariani
kpariani at zimbra.com
Wed Jun 3 22:06:57 UTC 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20150603/53dd87c1/attachment.html>
More information about the nginx
mailing list