views:

34

answers:

1

I try to figure out when i use reload command to supervisord,dose it will stop the processing currently executing under it? so i use bellow 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 the process id is not changed ,so does it prove reload will not stop the processing under supervisor control?

+1  A: 

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.

racetrack
@racetrack it seems the xml-rpc didn't provide reread or update api for remote control http://supervisord.org/api.html?highlight=rpc#supervisor.xmlrpc, is there any way i can remote control ,not through supervisorctl
mlzboy
@racetrack sorry for my carefulless,i find it,but i encounter another problem,how can know the current supervisor use which config file,because i have lots of conf file for test,dev etc,i can't distinguish them,unless know the current using conf file location,then i can check it
mlzboy