I have an Upstart job configured using the
task stanza, which another job depends on being finished before it starts. However, this job must also wait for a different service to be started before it starts. This causes some problems - the job will start if the task finishes before the dependent job has started, but it will not start if the task finishes after the job starts.
For example, let
task-a be the task that the job depends on, then this is the job's configuration file:
start on (stopped task-a and started cups) script echo do stuff end script
How can I get a job like the one above to start once the task has finished but after another job has started? I can modify the task if necessary, but I don't think sleeping forever is a very good solution. The Ubuntu version in this case is 12.04.