Perl Mojo Hypnotoad server has a hot restart feature. To update a program you only need to start Hypnotoad again and it eventually will replace all running copies.
How to tell Supervisor that there is no need to stop my server while restarting it?
Perl Mojo Hypnotoad server has a hot restart feature. To update a program you only need to start Hypnotoad again and it eventually will replace all running copies.
How to tell Supervisor that there is no need to stop my server while restarting it?
I don't know correct answer, but i want to try to answer...
The restart of supervisord takes place in two stages:
So, according to mojo docs and supervisord docs (see to stopsignal
) you need to do something like this:
stopsignal=QUIT
stopwaitsecs=20000 # big number, it very depend from your project, because don't know how much time need to close all exsisting connections
Optionaly you may to add this options:
stopasgroup=true
killasgroup=true