I have a single project foo
consisting of several daemons e.g. foo-web
, foo-worker
and for-cleanup
. For each of them I have a very simple Upstart script, allowing me to use commands like service foo-web start
.
What I really want is to have another Upstart script to control the whole application at once. So I can use service foo restart
to relaunch the whole thing and have start on
, stop on
and respawn
stanzas written only once for the entire project.
How can I achieve such behaviour?