我正在设置 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 help restart
,文档里有详细说明。 - Martijn Pieterssupervisorctl help
之后还有更多的文档。在线文档中也没有相关内容。 - EoghanMsupervisorctl restart tapjoy:
。 - wyx