/srv/irclogs.ubuntu.com/2014/07/01/#upstart.txt

preyaloneWhy does my Node server silently fail when daemonized with Upstart? https://github.com/mcandre/node-ios7crypt/blob/master/upstart.conf00:15
bbasicHey friends00:36
preyaloneAh, it was a problem with relative paths in the Node.js code00:43
bbasicI'm having problems with node.js and upstart as well....00:49
bbasicI can get it to start but I cannot get it to run on restart00:49
bbasicdoes anyone have any experience running node processes via upstart?02:53
bbasicworks manually start and stop02:53
xnoxjodh: i'm trying to fix the test-suite after adding correct pipe shrinkage and preventing close handler from double freeing the io10:41
xnoxjodh: however i'm noticing very odd things.10:42
xnoxjodh: for example: exec of a main process "/this/command/does/not/exist" in the child handler raises status 255, 13, 1 (in order of decreasing frequency)10:42
xnoxam i receiving and catching some unrelated events and some such? 10:43
* xnox ponders if i should only monitor chld exited....10:43
jodhxnox: are you only running that specific test? If not, I'd comment the rest out. Also, where's the latest branch? :-)10:48
xnoxjodh: just locally at the moment. let me push it.10:49
xnoxjodh: hm, in the child handler Is it actual exit status, or does one need to call WEXITSTATUS on it?!10:51
jodhxnox: yeah, you will if the child exited normally. Look at NihChildHandler in nih/child.h which documents exactly what status means (depends on NihChildEvents).10:54
xnoxjodh: https://code.launchpad.net/~xnox/upstart/shrink-notifications just the top level commit on top of lp:upstart11:00
jodhxnox: ta11:00
xnoxtest suite hangs at the moment. E.g. after exiting the mainloop, the log is not written / flushed for not ok 49 - with single-line command running an invalid command, then a 2-line post-stop script11:01
xnoxwrong value for stat (filename, &statbuf), expected 0 got -111:01
xnoxat tests/test_job_process.c:3270 (test_start).11:01
xnoxnot ok 49 - with single-line command running an invalid command, then a 2-line post-stop script11:01
xnoxwrong value for stat (filename, &statbuf), expected 0 got -111:01
xnoxat tests/test_job_process.c:3270 (test_start).11:01
xnoxin the test_job_process11:01
xnoxjodh: i'm trying to use the minimalistically simple main-loop exitor, out of all the editions i could find. Or is/was there branch and or commits from you where those tests were already adjusted to use main-loop without a lot of debug nih message codes?11:02
xnoxwhen i went looking through your branches again, i didn't find such.11:03
jodhxnox: lp:~jamesodhunt/upstart/async-spawn.WIP is the latest wrt main loop tests.12:19
jodhxnox: I'd be tempted to pull in more of my test_job_process.c changes (I'm thinking of TEST_RESET_MAIN_LOOP() specifically so that you know each test will get a clean env).13:28
xnoxjodh: yeah, working on disecting that now, given that it does pass further than my current shrinkage branch13:30
jodhxnox: ack.13:30
alexbligh1Is there a way to see what jobs upstarts *thinks* is running? I'm trying to work out why on Ubuntu 14.04 'service udevtrigger start' (which is a task) says that the job is already running15:30
xnoxalexbligh1: $ sudo initctl list ?15:31
alexbligh1xnox, that's what I was missing, thanks. What does it mean if a task is "udevtrigger start/starting"15:32
alexbligh1Surely a task, by the nature of a task, should be short lived?15:33
alexbligh1(and no it's not doing anything)15:33
xnoxalexbligh1: start/starting means the "start on" conditions are satisfied, however there are other jobs that are blocking udevtrigger from running.15:34
xnoxalexbligh1: e.g. jobs that are "start on starting udevtrigger" that are blocking15:35
xnoxalexbligh1: udevtrigger is typically run only once very early in the boot, and one wouldn't need to add any other custom jobs there.15:36
xnoxalexbligh1: can you pastebin $ sudo initctl show-config ?15:36
alexbligh1xnox, yeah I am having an issue where on my debootstrapped trusty, /dev/net/tun is not being created15:36
alexbligh1xnox, initctl show-config : http://pastebin.com/pQdSCmYn15:37
alexbligh1xnox, initctl list : http://pastebin.com/AAthU77A15:38
alexbligh1xnox, the only thing "start on starting udevtrigger" I can see is udev-monitor, and that is start/running15:39
alexbligh1xnox, I think I've found the problem. trusty udev is unhappy if /dev is not devtmpfs, but just a normal directory in my (ram) root filingsystem. Is that intentional? It's bizarrely difficult to work around as you can't mount both /dev and /dev/pts from /etc/fstab as no directory /dev/pts exists to mount on in devfs.18:22

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