[00:17] <Keybuk> oh, I see
[00:18] <Keybuk> it looks like we get the STOP of the child before the FORK of the parent
[00:20] <Keybuk> actually, that can't happen, we'd hit an assert
[00:20] <Keybuk> oh, no, we wouldn't
[00:21] <Keybuk> bah
[00:50] <ion> -	DEFAULT_RUNLEVEL="$(sed -n -e "/^id:[0-9]*:initdefault:/{s/^id://;s/:.*//;p}" /etc/inittab || true)"
[00:50] <ion> +	eval "$(sed -nre 's/^id:([0-9sS])[0-9sS]*:initdefault:.*/DEFAULT_RUNLEVEL="\1";/p' /etc/inittab || true)"
[00:51] <ion> Didn’t test that on a live system yet, though.
[00:51] <Keybuk> what's the difference?
[00:52] <ion> Originally, it would do DEFAULT_RUNLEVEL="" if inittab exists but id:... wasn’t set. Also, if there’s a broken inittab with multiple initdefault lines, or even multiple runlevels on a single line, DEFAULT_RUNLEVEL would get them all.
[00:52] <Keybuk> oh
[00:52] <Keybuk> well, sysvinit would have failed to boot then ;)
[00:53] <Keybuk> yours would fail if inittab had a " in it ;)
[00:53] <ion> Heh, true
[00:53] <ion> Oh, wait. It wouldn’t.
[00:53] <Keybuk> and fail at "eval"
[00:53] <Keybuk> rather than in the || true
[00:54] <Keybuk> oh
[00:54] <ion> The expression would print nothing if there was a line id:":initdefault:
[00:54] <Keybuk> ok true
[01:07] <ion> Oh, btw, set -e; eval "$(false)"; echo foo prints foo at least with dash, zsh and bash. Didn’t bother to read what POSIX says. The getopt(1) documentation explicitly tells you to do temp="$(getopt ...)"; eval "$temp" so that getopt interacts with set -e as expected.
[01:08] <ion> eval set -- "$temp" even
[19:05] <rjbell4> Sorry to join and pounce, but I just had a question I was wondering about: is there any support in upstart for monitoring multiple child processes?  I've found "expect fork" and "expect daemon", which seem to monitor a single child or grandchild, but what if there are several child processes, and if any of them fail then I want to take action?
[19:32] <ion> What’s wrong with joining and pouncing?
[19:32] <ion> 0.10 should have better support for following child processes, but that’s about as much as i know, Keybuk should be able to elaborate.