/srv/irclogs.ubuntu.com/2013/03/21/#upstart.txt

herriojrso, I'm running a python daemon that starts up with double forking and for some reason "expect daemon" doesn't cause it to track the correct pid and it is tracking the initial pid before any forks take placeā€¦are there known issues with expect daemon?01:07
xnoxherriojr: how are you launching it?01:16
xnoxherriojr: is the python daemon launched with exec stanza?01:16
herriojr@xnox: not the whole file, but the section you asked for: http://pastebin.com/N70HXzZB01:35
xnoxherriojr: you want "... all the environment ... exec python <args>" or "exec ... all the environment ... python <args>"01:40
xnoxtry both of those and see if one or both of them work and do what you need.01:40
herriojrxnox: are you saying use exec instead?01:41
herriojrand can I do that in the script section or do I do it as a separate section?01:41
xnoxherriojr: just as it is inside script section.01:41
xnoxherriojr: see line 46 for example https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/raring/xinetd/raring/view/head:/debian/xinetd.upstart#L4601:43
xnoxcouldn't find one with envrionment variables as well.01:43
herriojris that just so it can identify the command that is being daemonized?01:44
xnoxexec is kind of an indicator as to "start counting forks from here" marker.01:44
herriojrah ok01:44
xnoxyes.01:44
herriojralright, I figured out my issue: https://bugs.launchpad.net/upstart/+bug/79988403:45
herriojrso can "expect stop" be used in place of "expect daemon" to report the pid of the daemon process?04:10
twbI'm writing a near-trivial job for an Ubuntu 10.04 system, which is upstart 0.6.5-8.  Are you guys interested in discussing that, or is that old enough to be "upgrade or GTFO" territory?06:53
twbhttp://paste.debian.net/243300/ well anyway, that's what I've got.06:58
twbIt all works... except "start streamrippers" never exits.  It's starting the individual streamripper jobs OK tho.06:59
twbhttp://paste.debian.net/243301/07:00
SpamapSwhy can't I run init-checkconf as root?20:51

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