/srv/irclogs.ubuntu.com/2013/10/16/#upstart.txt

jamescarrhey guys, another upstart question16:19
jamescarris there a way to ensure something executes on startup when EVERYTHING ELSE has started?16:20
jamescarrI have a service that needs to start when at least two other services have started16:20
jodhjamescarr: "start on (started service-a and started service-b)". There is no "everything else" - jobs start and stop for the lifetime of the system boot.16:32
jamescarrjodh: yeah I think what you said is what I need16:33
jamescarrbasically, I need this script to run once docker is running and networking has been configured ;)16:33
jamescarrthe problem was it was running before networking was configured or docker was running16:33
jamescarrso sometimes it worked sometimes it didnt16:34
jodhjamescarr: take a look at upstart-events(7) or http://upstart.ubuntu.com/cookbook/#ubuntu-well-known-events-ubuntu-specific as there are generally events for most stages of the boot.16:34
SpamapSjamescarr: I'd do 'start on runlevel [2345]' and then in pre-start do 'exec start wait-for-state WAITER=myjob WAIT_FOR=docker'16:49
SpamapSjodh: btw any movement on state awareness for upstart?16:50
jamescarrSpamapS: didn't know about that pre-start thing16:51
jamescarrthanks!16:51
SpamapSjamescarr: it is less than obvious, but it solves the problem in a more robust way (it will force docker to start if it is not yet starting)16:52
jamescarryeah I like that16:52
jodhSpamapS: not recently I'm afraid. Still something we're considering as mentioned in the LinuxCon talk.16:55

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!