重新加载supervisord会导致其下的进程停止吗?

发布于 2024-09-24 13:18:39 字数 511 浏览 1 评论 0原文

我试图弄清楚我何时对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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

高跟鞋的旋律 2024-10-01 13:18:39

它不会杀死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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文