/srv/irclogs.ubuntu.com/2012/09/07/#upstart.txt

djhHi. I have a process that gets started by a shell script, which I've been told to move to being controlled by upstart. This naturally runs into problems with the PID that upstart gets when running the script isn't the PID of the daemon that gets started. I tried using "expect daemon" but this lea to suffering from the bug reported at https://bugs.launchpad.net/upstart/+bug/406397 where the process became unkillable.14:12
djhIs there a "good" way to have Upstart manage an application that needs to be started & stopped by a shell script?14:12
ionHow about making it not daemonize?14:14
ionNo need to use “expect” then.14:14
ionIf you prevent Upstart from tracking the process it won’t know if it crashes.14:15
djhHow do I stop it daemonizing?14:15
ionDepends on what the script is and does.14:16
djhthe script basically does a bunch of environment setup & then calls the server application14:18
SpamapSdjh: many server applications will have an argument to run in the foreground14:20
SpamapSdjh: there's only a few reasons to move server apps into upstart jobs. Either you need to orchestrate it starting up based on hardware/other services.. or you desire basic respawning14:21
* SpamapS carpet bombs http://stackoverflow.com/questions/tagged/upstart with answers...19:14
xaka...one of the daemons forks 4 times... - *facepalm*19:20

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