Supervisor 怎样才能实现等上个进程启动完成后才启动下一个进程?

2014-04-25 17:04:14 +08:00
 cxh116
定义了多个program,有按顺序启动program的要求
10052 次点击
所在节点    Python
4 条回复
cedared
2014-04-25 17:12:54 +08:00
留名关注一下
timonwong
2014-04-25 17:30:48 +08:00
priority 不行?
http://supervisord.org/configuration.html


priority

The relative priority of the program in the start and shutdown ordering. Lower priorities indicate programs that start first and shut down last at startup and when aggregate commands are used in various clients (e.g. “start all”/”stop all”). Higher priorities indicate programs that start last and shut down first.

Default: 999

Required: No.

Introduced: 3.0
cxh116
2014-05-04 10:46:39 +08:00
@timonwong 这个可以实现顺序启动,但没有等上个program启动完成就启动下一个program

我的需求是需要等上个program启动完成,才启动下个program,
everbird
2014-08-12 13:54:43 +08:00
@cxh116 这个貌似目前还做不到,目前只能 autostart=false 然后手工或脚本指定启动顺序。有个 Open 的 Issue 在 github 上:

https://github.com/Supervisor/supervisor/issues/122

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/110034

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX