Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will reloading supervisord cause the process under its to stop?

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?

like image 393
mlzboy Avatar asked Sep 25 '10 01:09

mlzboy


People also ask

How do I restart my supervisord process?

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 .

How can the supervisor process be stopped?

Finally, you can exit supervisorctl with Ctrl+C or by entering quit into the prompt: supervisor> quit.

What does Supervisorctl reload do?

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.

What is the use of supervisord?

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.


1 Answers

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.

like image 58
racetrack Avatar answered Sep 29 '22 14:09

racetrack