所以我建立了一个管理器,试图控制几个进程,所有进程都运行良好,现在我想建立一个组,这样我就可以启动/停止不同的进程集,而不是全部或什么都不做。这是我的配置文件片段。
[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
您需要使用
*
通配符来选择组中的所有程序:注意:您的shell可能要求您转义
*
,通常使用\*
我知道这是个老问题,但我遇到了同样的问题,在这里找到答案会很好。因此,为了将来的参考,而不是:
你需要:
文件:http://supervisord.org/configuration.html#group-x-section-values
相关问题 更多 >
编程相关推荐