/srv/irclogs.ubuntu.com/2010/06/12/#upstart.txt

thewoolleymananyone home?18:25
thewoolleymanhow can I tell upstart to call a stop script which is different than a start script?  e.g. start is /bin/start-myservice and stop is /bin/stop-myservice?18:46
ionpre-stop exec /bin/stop-myservice. But make sure Upstart actually tracks the process started by start-myservice. The easiest way is to make it not daemonize.18:48
thewoolleymanion: if I make it not daemonize upstart will keep track of the process?18:49
ionYes. And if you add a respawn stanza, Upstart will also restart it if it dies.18:49
thewoolleymanion: the docs are extremely unhelpful on that.18:57
thewoolleymanion: so what does the stop action do by default?18:58
thewoolleymanion: how does it know what to stop and how?18:59
ionIt runs the pre-stop command, if any, then sends SIGTERM to the main pid, then sends SIGKILL if it’s still running after a timeout and finally runs the post-stop command, if any.19:02
ionThe main pid being the one “status jobname” prints.19:02
thewoolleymanion: ok, thanks.  the docs don't make that clear at all.  where should I submit a doc bug/patch?19:06
ionhttps://launchpad.net/upstart19:06
thewoolleymanion: thanks a lot for your help.19:16

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