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?
To start a non-running service or stop a running one, use supervisorctl start my-daemon and supervisorctl stop my-daemon . To restart a service, you can also use supervisorctl restart my-daemon .
Finally, you can exit supervisorctl with Ctrl+C or by entering quit into the prompt: supervisor> quit.
supervisord will stop all processes, reload the configuration from the first config file it finds, and start all processes. supervisord will close and reopen the main activity log and all child log files.
Supervisord or Supervisor daemon is an open source process management system. In a nutshell: if a process crashes for any reason, Supervisor restarts it. From the Supervisord website: Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With