Upgrading Nginx executable on the fly

Zhang Chao zchao1995 at gmail.com
Mon Jan 8 02:08:38 UTC 2018


> We have been trying to upgrade the Nginx binary on the fly by invoking
USR2
> signal to spawn a new set of master and worker processes with the new
> configuration. The question I have is when this new master process is
> spawned, after issuing USR2 signal to the existing or the old master
> process, what would be it's parent process? Will it be the root process
(1)
> or the old master process?
>
> We have been seeing different case of this. In some cases we have seen
the
> new master process' PPID is 1, whereas in other cases its PPID is that of
> the old master process.

The new master’s parent is the old master before you quit the old master
process,
after it quits, the new master’s parent process will be the init process.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180107/51c17ab7/attachment.html>


More information about the nginx mailing list