1

我在与主管停止无花果进程时遇到问题。

supervisorctl start web_app

成功启动网络服务器,返回状态或 RUNNING 和某个 pid。

当我跑

supervisorctl stop web_app

该进程似乎已终止,因为状态变为 STOPPED 并且 pid 变为 0,但实际的 docker 容器继续运行并且 Web 应用程序永远不会终止。

主管.conf:

[program:web_app]
command = fig --file /home/luna/docker_test/fig.yml up
stopasgroup = true
killasgroup = true
autostart = false
autorestart = true

有任何想法吗?

4

1 回答 1

1

查看了fig源代码,发现我必须添加stopsignal = INT到supervisor.conf中

于 2014-11-26T18:46:40.013 回答