Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have around between 3 and 8 upstart jobs in various Ubuntu boxes that I wish to easily start, stop or restart all together. It seems that upstart would make it easy to do that, but I'm not sure how.

Should I use dependencies to make a single dummy job that depends on all the others? One of my requirements is that I wish to still be able to stop some without them restarting because others are started. How should I go about doing this?

share|improve this question
up vote 0 down vote accepted

I resolved by creating a dummy master job (/etc/init/master_job.conf):

description "master_job"

start on filesystem or runlevel [2345]
stop on runlevel [!2345]


and the others start and stop on it (/etc/init/other_job.conf):

start on starting master_job
stop on stopping master_job
share|improve this answer

Your Answer


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.