因此,我正在设置 Supervisord 并尝试控制多个进程,并且一切正常,现在我想设置一个组,以便我可以启动/停止不同的进程集,而不是全部或全无。这是我的配置文件的片段。
[group:tapjoy]
programs=tapjoy-game1,tapjoy-game2
[program:tapjoy-game1]
command=python tapjoy_pinger.py -g game1
directory=/go/here/first
redirect_stderr=true
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
[program:tapjoy-game2]
command=python tapjoy_pinger.py -g game2
directory=/go/here/first
redirect_stderr=true
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
现在,从阅读文档来看,我认为它应该有效,但是调用supervisorctl restart tapjoy:
没有做任何事情。
我错过了什么吗?
添加星号不会给出错误,但也不会执行任何操作。
supervisorctl restart tapjoy:*
supervisorctl status
tapjoy_game1 RUNNING pid 4697, uptime 1 day, 21:56:23
tapjoy_game2 RUNNING pid 4698, uptime 1 day, 21:56:23
tapjoy_game3 RUNNING pid 4699, uptime 1 day, 21:56:23
tapjoy_game4 RUNNING pid 4700, uptime 1 day, 21:56:23
tapjoy_game5 RUNNING pid 4701, uptime 1 day, 21:56:23
你需要使用一个*
通配符选择组中的所有程序:
supervisorctl restart tapjoy:*
注意:您的 shell 可能需要您转义*
,通常与\*
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)