custom job to be prioritised against system jobs - Take 2

Luigi Capriotti l.capriotti at tiscali.it
Fri Mar 9 11:58:01 UTC 2012


On 03/07/2012 06:42 PM, Clint Byrum wrote:
> This bug explains the problem you're having: 
> https://bugs.launchpad.net/upstart/+bug/568860 
tks for your reply.
I went on some more tests before your message and came out with this:

#myjob-wait
description     "myjob-wait"

start on (starting lightdm or starting ubiquity)
stop on stopped myjob
instance $JOB
normal exit 2
task

script
     status myjob | grep -q "start/running" && exit 0
     start myjob || true
     while sleep 3600 ; do :; done
end script

#myjob
description     "myjob"

# The script is started by the xbmcbuntu-wait job only

script
  ....
end script

Do you see anything wrong with this approach? From my preliminary tests 
this combination implements what I need.

Best regards

Luigi



More information about the upstart-devel mailing list