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 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

1 Answer 1

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]

respawn

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

 
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.