supervisord:不要在另一个程序运行之前启动程序

我在Ubuntu上使用了几个监督程序来监督。 是否可以configurationpipe理程序,使其在另一个特定程序成功启动之前不启动程序?

也就是说,只有在Zookeeper启动后才能运行Kafka。

我不确定主pipe可以确保但是试图指定Zookeeper的优先级低于Kafka的,比如:

[program:Zookeeper] command=xx priority=1 autostart = true autorestart = true [program:Kafka] command=yy priority=999 autostart = true autorestart = true 

就我所知,你不能这样做。 看到这个问题: https : //github.com/Supervisor/supervisor/issues/122

有一位评论者build议将所有程序都设置为autostart = false,除了一个,它有责任按照正确的顺序将所有其他程序(使用supervisorctl或API,我猜)。