/srv/irclogs.ubuntu.com/2009/07/09/#upstart.txt

Keybukhow are you reproducing?00:16
mbieblunfortunately, I don't have a core file00:17
mbieblreproducing is easy00:18
mbieblopen /etc/init.d/rc00:18
mbiebland add "runlevel" after line 7200:18
mbieblit also seems, I was on the wrong track with startpar00:19
KeybukDebian or Ubuntu ?00:19
mbieblUbuntu00:20
Keybukafter "export runlevel previous"?00:20
mbieblyeah00:20
mbieblwho is responsible for setting the env variables PREVLEVEL and RUNLEVEL in rc.conf?00:21
Keybuknobody00:21
Keybuktelinit sets them in the runlevel event00:21
mbiebldoes telinit read /var/run/utmp to get that information?00:22
Keybukyes00:22
Keybukand its environment00:22
mbieblI changed rc.conf a little00:23
mbieblscript00:24
mbieblecho "RUNLEVEL: $RUNLEVEL"00:24
mbieblecho "PREVLEVEL: $PREVLEVEL"00:24
mbieblexec /etc/init.d/rc $RUNLEVEL00:24
mbieblend script00:24
Keybukhmm, runlevel just works for me there00:24
mbieblsometimes PREVLEVEL is just empty on reboot00:24
Keybukcan't you do00:24
Keybukulimit -c unlimited00:24
mbieblsometimes it's 200:24
Keybukrunlevel00:24
Keybuk?00:24
mbiebllooks like a race somewhere00:24
mbieblulimit -c unlimited in /etc/init.d/rc ?00:25
Keybukbefore calling runlevel00:25
Keybukto get a coredump00:25
Keybukoh, I know00:26
Keybukit's that env RUNLEVEL=00:27
Keybukshould probably be =N ? :)00:27
mbieblthe core files should be in /?00:30
Keybukaye00:30
mbieblhm, there isn't any00:30
mbiebleven with ulimit00:31
Keybukbah00:31
Keybukif you change it to =N does it work?00:31
mbieblrc-sysinit.conf?00:32
Keybukyeah00:32
Keybukor try 116500:34
Keybukmore in 116600:36
mbieblOk, if I set RUNLEVEL=N00:42
mbieblI no longer get any asserts00:42
mbieblrunlevel then reports: N N00:42
Keybukafter boot?00:43
mbieblimmediately after the startup event00:43
Keybukor for rcS?00:43
Keybukok00:43
mbieblNot sure, if the legacy runlevel reported just "N" in that case00:43
mbieblanyway, I guess runlevel should be more fault tolerant, when RUNLEVEL is not set00:44
mbieblregarding the reboot problem00:44
mbieblWhat I figured out so far is this:00:45
KeybukI think I fixed that now00:45
mbieblIf I just hit strg+alt+del, I get 2 600:45
mbieblWhen I login and type reboot, I get N 600:45
Keybukthat implies your /var/run/utmp is mucked up?00:50
mbieblreboot seems to break it,00:51
Keybukhah00:52
Keybukby writing a shutdown line00:53
Keybukand now I get the assert \o/00:55
Keybuktry 116800:57
mbieblso this should only happen if you *don't* use tmpfs for /var/run?00:57
Keybukno, this was just a bug00:57
Keybukreboot writes the shutdown time, which is a special runlevel record00:58
Keybukthat overwrites the runlevel record in utmp00:58
mbieblI mean the assert in runlevel on boot?00:58
Keybukbut it did that before calling /sbin/shutdown, which meant it couldn't get the runlevel ;)00:58
Keybukthat was just bad sanity checking00:59
mbieblKeybuk: looks good now01:09
mbieblno more asserts, no more problems on reboot \o/01:09
mbieblbtw., I asked on #vim if there is a standard way of installing vim addons01:10
mbieblapparently there isn't a straighforward procedure01:11
Keybukinclude it in the vim source ;)01:11
mbieblSo best is probably, to just ship a README how to install it manually01:11
mbiebloh yeah, when the upstart syntax is frozen01:11
mbieblthen this is probably the best idea01:11
KeybukI mean in Debian/Ubuntu01:11
=== Keybuk changed the topic of #upstart to: PLEASE TEST TRUNK! | Upstart 0.5.3 "Britain's Flag Carrier" | Upstart 0.3.11 "For Friday, June 19th 2009, I'm Jon Masters" | http://upstart.ubuntu.com/
Keybukanyway bed01:12
sadmacKeybuk: ah01:12
KeybukI shall release in the morning if there's no show-stoppers01:12
sadmacKeybuk: caught you01:12
sadmac:)01:12
sadmacKeybuk: just filed the state transfer patch01:12
Keybuksadmac: yup, quickly!01:12
sadmacKeybuk: look at it in the morning if you like :)01:12
Keybukcool01:12
Keybukwill do01:12
mbieblKeybuk: make check no longer passes :-/02:04
mbieblfyi, I started packaging trunk: http://debs.michaelbiebl.de/upstart/02:11
mbieblin case you are interested02:11
Keybukmbiebl: which revno did make check fail on?09:07
ionkeybuk: Does trunk handle the Ubuntu jobs as-is – that is, can i just install to /sbin/init.temp and test with init=/sbin/init.temp?09:08
Keybukion: no, they're in different paths and slightly different format09:08
KeybukI decided it was better to make it easy for 0.10 to be backwards compatible with 0.609:08
ionGood :-)09:09
ion% autoreconf -i09:17
ionautopoint: *** cvs program not found09:17
ionle sigh09:17
plautrbasadmac: fyi, i've just finished rpm from todays trunk - http://plautrba.fedorapeople.org/upstart/09:21
ionAn Upstart build non-benchmark on a dualcore laptop: http://pastebin.com/mbb57e6b09:47
ionkeybuk: How about tagging the job files with a format version number? Enforce the file to begin with “upstart 0.6\n” and parse the rest as usual perhaps. It would also make file(1)’s job easier, as well as editor syntax highlighter defintions’.09:53
KeybukI thought about it09:59
Keybukbut I don't really like those kinds of things09:59
ionhttp://heh.fi/tmp/vim-highlight-upstart-rcS.conf http://github.com/ion1/vim-highlight10:08
Keybukion: is that using mbiebl's stuff?10:09
ionI just copied contrib/vim/* to ~/.vim and ran vim-highlight -t upstart conf/rcS.conf foo.html.10:10
ionYeah, contrib/vim seems to be written by him. :-)10:10
ion-t upstart wouldn’t have been needed, had it been able to automatically recognize the file type. ;-)10:11
ionvirtualbox-ose-source doesn’t seem to work with 2.6.31-2-generic-pae. Let’s not test Upstart in a VirtualBox VM then. Let’s see how ubuntu-vm-builder works.10:29
Keybukwow12:22
Keybukthe test suite is much faster when compiled -O2 ;)12:22
Keybukmake check  55.36s user 4.29s system 63% cpu 1:34.17 total12:25
mbieblion: wanna help with polishing the vim syntax file?12:42
mbieblKeybuk: is the message_iter_abandon_... patch for dbus already in Ubuntu/karmic?12:45
Keybukyes12:45
mbieblwas it accepted upstream?12:46
Keybuknot yet12:46
KeybukI need to write a test case for it12:48
mbieblKeybuk: what about a small configure check and a ifdef?12:58
Keybukmbiebl: #if YES_I_WANT_TO_ASSERT_ON_ENOMEM ? :)12:58
mbieblsomething like that, yes :-)12:59
mbieblonly as long as the patch is not in the official dbus upstream13:00
mbieblIn which can you can bump the pkg-config check13:01
KeybukI think it's better to subversively force everyone to apply that patch13:01
mbieblthen ./configure should simply abort13:01
mbieblwhich would be trivial to do13:02
mbiebltogether with a helpful error message, pointing to the fd.o bug report13:02
mbieblwant a patch :-)13:04
Keybukactually, that is a good point13:07
Keybukconfigure should check for that function and abort13:07
Keybukyes please13:07
mbieblok, will do13:08
mbiebl<Keybuk> mbiebl: which revno did make check fail on?13:51
mbiebl117213:51
mbieblhttp://paste.debian.net/41435/13:51
Keybukhhe13:59
Keybukisn't that because upstart is already running?14:00
plautrbaKeybuk: my "make check" fail - http://pastebin.dqd.cz/93914:08
plautrbabut i have to leave now, bb at monday14:08
Keybukplautrba: do yoiu not have -lrt in ../nih/libnih.la ?14:09
plautrbano14:12
Keybukthat's weird14:14
Keybukdon't support you mind tarring up your build directory for me so I can examine it?14:14
mbieblKeybuk: could be14:15
mbieblwhen make distcheck passed yesterday14:15
mbieblI was still running 0.3.1114:15
plautrbaKeybuk: http://plautrba.fedorapeople.org/upstart/upstart-0.6.0-1172-build.tar.bz214:16
plautrbaKeybuk: it's build from http://plautrba.fedorapeople.org/upstart/upstart-0.6.0-0.1172.fc11.src.rpm14:16
Keybukok14:21
Keybukplautrba: what revno of libnih?14:22
Keybukah, 96314:22
Keybuk-r968 fixed that14:22
Keybukmake check  61.55s user 4.41s system 65% cpu 1:40.97 total14:23
Keybuk(with -Os)14:23
Keybukthat means -O2 was slightly quicker than -Os14:23
ionmbiebl: If i ever get anything done, i’ll post a patch. :-)15:53
mbieblargh, manpage-de ships init.816:02
mbieblso I alway have to run LANG=C to get the correct man page16:03
Keybukmbiebl: did you have that configure.ac patch to hand?16:05
mbieblyeah, could you quickly point me to the fd.o bug again?16:10
mbieblbugzilla so sucks16:11
mbieblfound (via google) ;-)16:16
mbieblhttp://paste.debian.net/41446/16:23
mbieblwait a sec16:24
mbieblWe don't want -ldbus-1 added to LIBS16:26
mbieblthis one's better http://paste.debian.net/41447/16:27
KeybukI came up with a better way ;)16:30
KeybukI bumped the D-Bus GIT version to 1.2.15 and just dep on that16:30
Keybukwhich gives us the timeout patches too16:30
mbieblKeybuk: but that makes it harder for distros which ship dbus+the patch16:37
Keybukmbiebl: D-Bus 1.2.16 will be out in NOW+$SOMETIME16:38
mbieblIs Collin on it?16:39
Keybukyup16:39
mbieblcool16:39
Keybuk<walters> ok, i'll try to do one by tomorrow16:39
mbiebleven better ;-)16:40
Keybukbuild test, check17:13
Keybukdistcheck, check17:13
Keybukpackage built, check17:13
* Keybuk reboots17:13
ionI wouldn’t mind testing the package.17:13
ion...as long as your system doesn’t fail to boot with it. :-P17:14
KeybukI'm just about to upload it :D17:15
ionAh, cool.17:15
Keybuksweet17:16
Keybukit booted17:16
ionThat’s always a nice bonus.17:17
mbieblKeybuk: so what is the make-check-fails-when-upstart-already-running about?17:18
Keybukmbiebl: not sure, it doesn't do it for me17:19
KeybukI figured I'll fix that in trunk quickly after the release when I figure it out :)17:19
=== Keybuk changed the topic of #upstart to: Upstart 0.6.0 "How appropriate, you fight like a cow" | Upstart 0.5.3 "Britain's Flag Carrier" | Upstart 0.3.11 "For Friday, June 19th 2009, I'm Jon Masters" | http://upstart.ubuntu.com/
Keybukmbiebl: hmm17:24
Keybukyou had a previously failing test case right?17:24
Keybuktry pkill -f test_17:24
Keybukthe test suite doesn't clean up in case of failure (since I want to be able to debug it usually)17:25
mbieblI don't think I have any running test_ processes17:26
Keybukkooky17:28
KeybukI shall investigate and fix17:28
sadmac2Keybuk: I applaude your release codename17:43
ionIndeed17:44
ionkeybuk: How much did you say the test suite takes to run? I built the Ubuntu package for 0.6.0 locally, and it didn’t take very long. It did seem to run the test suite. Unfortunately, the build log doesn’t seem to contain any timestamps.17:51
ionWait. What am i talking about? I’ve had the runtime of the previous command in zsh prompt for a while now. debuild -b -j3 of 0.6.0-1 took 491.5 seconds.17:52
sadmac2ion: where's your underscore?17:53
ionA bit more than 8 minutes, including the time it took to type my PGP password when debuild signed the package. :-P17:53
ionsadmac2: Huh?17:53
sadmac2ion: you've been ion_ forever17:54
ionAh. #elsewhere: 2009-06-24 00:25:50 < ion> Woot! I got the nick back. I registered it back in the 1800s and someone immediately complained, claiming he had been using the nick in Freenode before me. I was teh benevolent and gave it to him (i guess i got some good karma, since someone kindly gave the nick back to me in IRCnet, since i had been using it there long before him). It seems he hasn’t been at Freenode for six months and the registration expired.17:55
sadmac2pimp!17:55
ionii  upstart          0.6.0-1          event-based init daemon17:59
ionLet’s reboot and see whether i come back.18:00
ionIt’s alive!18:05
ionkeybuk: So, is something wrong with my system or your system (re: test suite runtime)? :-P18:09
mbieblKeybuk: when will the new daemon monitoring code land in trunk?18:57
sadmac2notting: how do we feel about 0.6.0 in RHEL? are we going to try to swing it?19:11
sadmac2plautrba: ^^19:11
nottinggah.19:12
sadmac2gah?19:13
notting"i would prefer not to deal with the headaches of a rushed migration at this particular exact point in time"19:22
sadmac2notting: never heard that acronym...19:23
nottingnot acronym. approximation of an unintelligible verbal noise19:23
sadmac2notting: its very meaning-dense19:23
notting(see also: 'meh', 'bleah', etc.)19:23
* sadmac2 should probably port rawhide this weekend19:24
sadmac2I'll be at the beach, so nothing better to do :)19:29
mbieblKeybuk: is there an equivalent to the old "initctl events" in 0.6.0?19:56
sadmac2mbiebl: last we discussed it it was removed by design choice19:57
=== michael__ is now known as mbiebl
mbieblKeybuk: so you merged the debian packages again?22:32

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