小编Lee*_*son的帖子

Supervisorctl stop all = 停止进程?

我正在运行几个 PHP CLI 脚本并通过 Supervisor 监控它们。

当我supervisorctl用来监视它们时,脚本显示如下:

cleanup     RUNNING    pid 1805, uptime 0:00:41
postsales   RUNNING    pid 1825, uptime 0:00:10
rebills     RUNNING    pid 1823, uptime 0:00:19
subscribers RUNNING    pid 1827, uptime 0:00:10
Run Code Online (Sandbox Code Playgroud)

但是,当我发出 a 时stop all, supervisorctl 冻结,我需要按 CTRL+C 退出。

当我下次运行时supervisorctl,状态如下所示:

cleanup     RUNNING    pid 1935, uptime 0:00:44
postsales   RUNNING    pid 1953, uptime 0:00:05
rebills     STOPPED    Jul 19 12:23 PM
subscribers RUNNING    pid 1951, uptime 0:00:05
Run Code Online (Sandbox Code Playgroud)

即只有一个进程已停止,其他进程继续运行。

如果我发出更多stop all命令,同样的事情会发生 - 一个脚本尝试退出,其余的挂起。

我已经尝试修改 supervisord.conf 文件以 …

process php-cli daemon

4
推荐指数
1
解决办法
3697
查看次数

标签 统计

daemon ×1

php-cli ×1

process ×1