Will reloading supervisord cause the process under its to stop?

mlzboy picture mlzboy · Sep 25, 2010 · Viewed 14.9k times · Source

I try to figure out when I used reload command to supervisord. Will it stop the processing currently executing under it? I used below steps:

mlzboy@mlzboy-mac:~/my/ide/test$ pstree -p|grep super
        |-supervisord(6763)
mlzboy@mlzboy-mac:~/my/ide/test$ supervisorctl 
daemon                           STARTING   
supervisor> reload
Really restart the remote supervisord process y/N? y
Restarted supervisord
supervisor> exit
mlzboy@mlzboy-mac:~/my/ide/test$ pstree -p|grep super
        |-supervisord(6763)

I found that the process id is not changed. So does it prove reload will not stop the processing under supervisor control?

Answer

racetrack picture racetrack · Sep 25, 2010

It doesn't kill the supervisord process, it just stops all processes, reload the configuration file, and restart processes again.

If you just want to apply the new configurations use reread command. It'd just reload the configuration without stopping, and respawning processes.

And running update will restart the processes (groups) that have changed.