重新加载supervisord会导致其下的进程停止吗?
我试图弄清楚我何时对supervisord使用了reload命令。它会停止当前在其下执行的处理吗? 我使用了以下步骤:
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)
我发现进程ID没有改变。那么这是否证明重新加载不会停止主管控制下的处理?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它不会杀死supervisord进程,它只是停止所有进程,重新加载配置文件,然后再次重新启动进程。
如果您只想应用新配置,请使用
reread
命令。它只是重新加载配置而不停止和重生进程。运行
update
将重新启动已更改的进程(组)。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.