[04:24] <haylo> hi
[04:25] <_ion> keybuk: Would something like this be correct for replacement-initscripts/etc/udev/rules.d/85-upstart.rules?
[04:25] <_ion> SUBSYSTEM=="block", ACTION=="add", RUN+="initctl emit block-device-added %k"
[04:25] <_ion> SUBSYSTEM=="net", ACTION=="add", RUN+="initctl emit network-device-added $env{INTERFACE}"
[04:26] <_ion> SUBSYSTEM=="block", ACTION=="remove", RUN+="initctl emit block-device-removed %k"
[04:26] <_ion> SUBSYSTEM=="net", ACTION=="remove", RUN+="initctl emit network-device-removed $env{INTERFACE}"
[04:26] <Keybuk> with "/sbin/initctl", yes
[04:26] <Keybuk> though I'm also trying to work out how to get the fstab in there
[04:26] <Md> and if you use $env{INTERFACE} maybe it's a good idea to check if it is defined
[04:27] <Keybuk> %k would suffice instead of env{INTERFACE}
[04:27] <Md> also, you may want to react on block online/offline events too
[04:27] <Md> good point
[04:27] <Keybuk> Md: I thought online/offline went away, and got replaced by change
[04:27] <haylo> ok, guys, i am sorry but I have to ask how to get to the code of the replacement-initscript. I am trying for over half an hour now
[04:27] <Md> Keybuk: maybe, anyway one of them may need to be handled
[04:27] <haylo> I only get some launchpad pages and baz errors
[04:27] <Keybuk> haylo: what did you try?
[04:28] <haylo> Keybuk: i searched on the launchpad site linked in the announcement mail,
[04:28] <haylo> Keybuk: i tried the codebrowser instead of code variant
[04:28] <Keybuk> you found https://code.launchpad.net/~keybuk/+branch/upstart/replacement-initscripts ?
[04:28] <haylo> Keybuk: i tried the url on the launchpad site with baz get
[04:32] <Keybuk> baz?
[04:32] <_ion> You need to use bzr
[04:32] <Keybuk> right, wrong tool :p
[04:32] <Keybuk> bzr branch http://bazaar.launchpad.net/~keybuk/upstart/replacement-initscripts
[04:32] <Keybuk> would do the trick
[04:32] <haylo> i just installed 'bazaar'
[04:32] <haylo> not right?
[04:32] <Keybuk> install 'bzr'
[04:32] <haylo> doh
[04:32] <haylo> why are there two VCS' with the same name?
[04:32] <haylo> that's just mean :)
[04:32] <Keybuk> silly, isn't it
[04:32] <Keybuk> baz was an attempt to change GNU Arch into "Bazaar"
[04:32] <Keybuk> it was abandoned, and bzr was written from scratch instead
[04:36] <haylo> which shell does upstart use to execute the script portions of the jobs?
[04:36] <haylo> is it always /bin/bash or /bin/sh (which could mean it getting mangled to dash at least)
[04:37] <haylo> ah ok
[04:37] <_ion> /bin/sh -e, i think
[04:37] <_ion> It uses -e by default, right?
[04:38] <haylo> oh
[04:38] <haylo> so ${KVER%{KVER#*.*[^.] }} is no bashism
[04:38] <haylo> o k
[04:39] <Keybuk> yeah /bin/sh
[04:39] <Keybuk> that's ordinary POSIX :p
[04:41] <haylo> hm
[04:41] <haylo> doesn't work though :)
[04:41] <haylo> hey, this is fun!
[04:42] <Keybuk> there's a typo in it
[04:43] <Keybuk> should be ${KVER%${KVER#*.*[^.] }}
[04:43] <haylo> KMAJ should contain, what? 2.6?
[04:43] <haylo> ok
[06:37] <_ion> keybuk: Btw, funny thing, one of the upstart test cases failed, but then i wasn't able to repeat the failure anymore: http://soijabanaani.net/tmp/upstart_util_test_events_failure
[06:37] <_ion> keybuk: It might be relevant that i was using libnih.watch_delayed and upstart.watch_delayed, but seems like the test case didn't really have anything to do with my modifications.
[06:43] <_ion> Hi Artanicus
[06:44] <Artanicus> hello
[06:52] <Keybuk> _ion: hmm, odd
[06:53] <_ion> After the failure, i ran 'while util/test_events; do true; done' for quite a while without a new failure.
[06:56] <Keybuk> _ion: why are there three "Testing emit_action()" lines?
[06:58] <_ion> Uh. I have no idea.
[06:59] <_ion> Unless the xfce terminal has a bug when copying a chunk of text while scrolling down...
[06:59] <Keybuk> in fact, they're all duplicated a lot
[07:03] <_ion> I tried printing numbers 1..1000 and copying and pasting them, didn't stumble upon such a bug.
[07:04] <Keybuk> weird then
[07:04] <Keybuk> I can't reproduce that one
[07:04] <Keybuk> looking at the test case, it suggests that stdout went away
[07:04] <Keybuk> maybe you ran out of fds temporarily?
[07:05] <_ion> That would be quite strange, too, i think.
[07:09] <AlexExtreme> hmm
[07:10] <AlexExtreme> feisty is *really* nice
[07:11] <Keybuk> yeah, it's getting there
[07:11] <AlexExtreme> although
[07:11] <AlexExtreme> just got a crash in synaptic
[07:12] <AlexExtreme> and apport is really good, too :p