=== _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 | ||
haylo | hi | 04:24 |
---|---|---|
_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:25 |
_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:26 |
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:27 |
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:28 |
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:32 |
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:36 |
haylo | ah ok | 04:37 |
_ion | /bin/sh -e, i think | 04:37 |
_ion | It uses -e by default, right? | 04:37 |
haylo | oh | 04:38 |
haylo | so ${KVER%{KVER#*.*[^.] }} is no bashism | 04:38 |
haylo | o k | 04:38 |
=== j_ack_ [n=rudi@p508DA067.dip0.t-ipconnect.de] has joined #upstart | ||
Keybuk | yeah /bin/sh | 04:39 |
Keybuk | that's ordinary POSIX :p | 04:39 |
haylo | hm | 04:41 |
haylo | doesn't work though :) | 04:41 |
haylo | hey, this is fun! | 04:41 |
Keybuk | there's a typo in it | 04:42 |
Keybuk | should be ${KVER%${KVER#*.*[^.] }} | 04:43 |
haylo | KMAJ should contain, what? 2.6? | 04:43 |
haylo | ok | 04:43 |
=== mbiebl [n=michael@e180068066.adsl.alicedsl.de] has joined #upstart | ||
_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:37 |
=== AstralSt is now known as AStorm | ||
=== Artanicus [i=kuitunej@lehtori.cc.tut.fi] has joined #upstart | ||
_ion | Hi Artanicus | 06:43 |
Artanicus | hello | 06:44 |
Keybuk | _ion: hmm, odd | 06:52 |
_ion | After the failure, i ran 'while util/test_events; do true; done' for quite a while without a new failure. | 06:53 |
=== juergbi [n=juerg@80-219-17-102.dclient.hispeed.ch] has joined #upstart | ||
Keybuk | _ion: why are there three "Testing emit_action()" lines? | 06:56 |
_ion | Uh. I have no idea. | 06:58 |
_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 | 06:59 |
_ion | I tried printing numbers 1..1000 and copying and pasting them, didn't stumble upon such a bug. | 07:03 |
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:04 |
_ion | That would be quite strange, too, i think. | 07:05 |
AlexExtreme | hmm | 07:09 |
AlexExtreme | feisty is *really* nice | 07:10 |
Keybuk | yeah, it's getting there | 07:11 |
AlexExtreme | although | 07:11 |
AlexExtreme | just got a crash in synaptic | 07:11 |
AlexExtreme | and apport is really good, too :p | 07:12 |
=== 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 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!