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

TakumoHi all, if I have two jobs, A and B, and job B needs job A to work13:50
Takumocan job A do "emit a-running" and B have "start on a-running" ?13:51
jodhTakumo: yes, but you don't need to do that: just make B specify "start on started A". See http://upstart.ubuntu.com/cookbook/#event and http://upstart.ubuntu.com/cookbook/#start-depends-on-another-service.13:55
jodhTakumo: note that if you really want A to emit your custom 'a-running' event, it should call 'initctl emit a-running' but also specify 'emits a-running' for 'initctl check-config' (see http://upstart.ubuntu.com/cookbook/#initctl-check-config).13:58
Takumooh ok, so just leave A without any emits and have b do "start on started A"14:06
Takumoawesome :)14:07
jodhTakumo: correct :) Upstart provides a set of standard events for jobs (starting/started/stopping/stopped). They all have man pages too.14:07
Takumothat's nice14:09
Psi-JackI'm trying to create an upstart job that loads a non-forking, non-daemonizing PHP script which keeps itself running in the foreground. But, when I do so, it just starts it, and stops immediately with an exit code of 1, and debugging it, I can't seem to find any further details why it's just not working.16:19
jodhPsi-Jack: this is all covered in the cookbook: http://upstart.ubuntu.com/cookbook/#determining-why-your-service-fails-to-start, http://upstart.ubuntu.com/cookbook/#checking-how-a-service-might-react-when-run-as-a-job16:23
jodh, http://upstart.ubuntu.com/cookbook/#see-the-environment-a-job-runs-in16:23
jodh 16:23
Psi-JackI kinda figured out what it was. sudo errored about not having a tty.16:23
leomurillozanybody know how I can execute an action on job respawn?22:35

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