/srv/irclogs.ubuntu.com/2013/05/29/#upstart.txt

=== Md__ is now known as Md
jadamshey, so I have a problem where a command I start in a subshell in an upstart script won't die on service stop.  Some discussion around the problem is here: https://github.com/ddollar/foreman/issues/9716:01
jadamsessentially, the command I ran after the && in my "su - foo -c "a && b" won't stop16:01
jadamsin that example, stopping the service would kill a but not b16:01
xnoxjadams: correct you should have a second upstart job to run b which is "started on stopped a" (sequential)16:35
xnoxjadams: also see "setuid" and "setgid" stanzas which may possibly replace "su" for you.16:35
* SpamapS wishes we could have setuid per-executable16:53
SpamapSso that pre-start can be root16:53
jadamsxnox: yeah, so it ultimately seems to come down to this problem: https://gist.github.com/knewter/567192817:05
jadamsxnox: so ultimately, I'm dealing with a ruby app on a deploy, and so my foo actually modifies the current environment (it's an rvm script runner), so I actually just want to run it before running the second command17:06

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