Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using supervisor on Ubuntu with several programs to supervise. Is it possible to configure supervisor so it doesn't start a program before another specific program has successfully started?

I.e. I want to run Kafka only after Zookeeper has started.

share|improve this question

2 Answers 2

I'm not sure supervisor can ensure that but try to specify Zookeeper's priority lower than Kafka's, something like this:

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

[program:Kafka]
command=yy
priority=999
autostart = true
autorestart = true
share|improve this answer

You can't do this, as far as I know. See this issue: https://github.com/Supervisor/supervisor/issues/122

One commenter there suggests having all your programs as autostart = false, except just one, that has the responsibility for bringing all the others up (using supervisorctl, or the API, I guess) in the right order.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.