=== _ion [i=johan@kiviniemi.name] has joined #upstart === Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart === AStorm [n=astralst@host-81-190-179-124.gorzow.mm.pl] has joined #upstart === j_ack [n=rudi@p508DA98A.dip0.t-ipconnect.de] has joined #upstart === AlexExtreme [n=AlexExtr@frugalware/developer/AlexExtreme] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === Seveas [n=seveas@ubuntu/member/seveas] has left #upstart ["""] === AStorm [n=astralst@host-81-190-179-124.gorzow.mm.pl] has joined #upstart === Keybuk [n=scott@quest.netsplit.com] has joined #upstart === AstralSt [n=astralst@host-81-190-179-124.gorzow.mm.pl] has joined #upstart === j_ack [n=rudi@p508DA920.dip0.t-ipconnect.de] has joined #upstart === haylo [n=haylo@xdsl-195-14-220-146.netcologne.de] has joined #upstart [04:24] 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] with "/sbin/initctl", yes [04:26] though I'm also trying to work out how to get the fstab in there [04:26] and if you use $env{INTERFACE} maybe it's a good idea to check if it is defined [04:27] %k would suffice instead of env{INTERFACE} [04:27] also, you may want to react on block online/offline events too [04:27] good point [04:27] Md: I thought online/offline went away, and got replaced by change [04:27] 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] Keybuk: maybe, anyway one of them may need to be handled [04:27] I only get some launchpad pages and baz errors [04:27] haylo: what did you try? [04:28] Keybuk: i searched on the launchpad site linked in the announcement mail, [04:28] Keybuk: i tried the codebrowser instead of code variant [04:28] you found https://code.launchpad.net/~keybuk/+branch/upstart/replacement-initscripts ? [04:28] Keybuk: i tried the url on the launchpad site with baz get [04:32] baz? [04:32] <_ion> You need to use bzr [04:32] right, wrong tool :p [04:32] bzr branch http://bazaar.launchpad.net/~keybuk/upstart/replacement-initscripts [04:32] would do the trick [04:32] i just installed 'bazaar' [04:32] not right? [04:32] install 'bzr' [04:32] doh [04:32] why are there two VCS' with the same name? [04:32] that's just mean :) [04:32] silly, isn't it [04:32] baz was an attempt to change GNU Arch into "Bazaar" [04:32] it was abandoned, and bzr was written from scratch instead [04:36] which shell does upstart use to execute the script portions of the jobs? [04:36] is it always /bin/bash or /bin/sh (which could mean it getting mangled to dash at least) [04:37] ah ok [04:37] <_ion> /bin/sh -e, i think [04:37] <_ion> It uses -e by default, right? [04:38] oh [04:38] so ${KVER%{KVER#*.*[^.] }} is no bashism [04:38] o k === j_ack_ [n=rudi@p508DA067.dip0.t-ipconnect.de] has joined #upstart [04:39] yeah /bin/sh [04:39] that's ordinary POSIX :p [04:41] hm [04:41] doesn't work though :) [04:41] hey, this is fun! [04:42] there's a typo in it [04:43] should be ${KVER%${KVER#*.*[^.] }} [04:43] KMAJ should contain, what? 2.6? [04:43] ok === mbiebl [n=michael@e180068066.adsl.alicedsl.de] has joined #upstart [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. === AstralSt is now known as AStorm === Artanicus [i=kuitunej@lehtori.cc.tut.fi] has joined #upstart [06:43] <_ion> Hi Artanicus [06:44] hello [06:52] _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. === juergbi [n=juerg@80-219-17-102.dclient.hispeed.ch] has joined #upstart [06:56] _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] 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] weird then [07:04] I can't reproduce that one [07:04] looking at the test case, it suggests that stdout went away [07:04] maybe you ran out of fds temporarily? [07:05] <_ion> That would be quite strange, too, i think. [07:09] hmm [07:10] feisty is *really* nice [07:11] yeah, it's getting there [07:11] although [07:11] just got a crash in synaptic [07:12] and apport is really good, too :p === j_ack [n=rudi@p508D831D.dip0.t-ipconnect.de] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart === mbiebl [n=michael@e180094112.adsl.alicedsl.de] has joined #upstart