/srv/irclogs.ubuntu.com/2009/10/06/#upstart.txt

sorendamjan: Funny you should ask...00:09
sorendamjan: https://bugs.launchpad.net/bugs/37286400:10
damjanfunny as in, you are laughing all the way to the bank? :)00:10
damjanthanks00:11
sorenSure :)00:11
damjanI don't think this is available in 0.6.3 .. (does launchpad corellate bug reports with commits??)00:13
ionKarmic has 0.6.3, so what Scott said in the last message would work with it.00:15
ionThe tty-device-added event must come from upstart-udev-bridge.00:16
ionIndeed, strings =upstart-udev-bridge:00:16
ion%s-device-added00:16
ionKERNEL=%s00:16
Keybukit does00:18
damjanis upstart-udev-bridge going to be included in future upstart versions?00:38
ionFuture Upstart versions won’t need it, as they’ll have the functionality built-in.00:39
damjanion: how do you know this stuff? (it's a bit hard to come by upstart info)00:40
iondamjan: The upstart-udev-bridge man page says sos.00:41
ionso00:41
damjanahh :)00:41
Keybukdamjan: you can just ask for upstart info ;)00:41
damjanKeybuk: the problem is when you don't know what to ask ... Upstart is still new (and changing) and has possibilities that weren't available before00:42
Keybukthat's certainly true00:43
damjanI'm experimenting with Upstart on ArchLinux .. so far I have it working00:44
* Esmil too ;)00:44
ionhttp://xkcd.com/645/ :-D02:33
testi_ In 9.04 Upstart does not emit an event when a network device goes up, or a default route is added. How can I execute a script as soon as network is available (without busy waiting!)07:42
testi_Ubuntu 9.0407:42
Mdtesti_: use udev07:52
testi_okay07:53
testi_Hmm but there is an example event network-up (that is not emitted in Ubuntu). Use udev because upstart is incomplete? Or use udev to tellupstart that a ertain device has now an ip-adress?08:17
=== mbiebl_ is now known as mbiebl
spaetzHi13:21
spaetzIs it intended that a "restart dbus" kills my X server and restarts it?13:22
Keybukyes13:22
spaetzwithout notifying or asking me?13:22
Keybukyou told it to, why would it ask you?13:22
spaetzbecause update-manager upgraded dbus which killed the X session which ran the update13:23
spaetzand therefore my upgrade was left in a state of limbo with a non-functioning network-manager13:23
Keybukupdate-manager does not run "restart dbus"13:23
Keybukif you had a bug like that, you should contact your distribution13:23
* spaetz shrugs. All I did was running update-manager and it suddently restarted X13:23
spaetzI understand that living on the beta-edge will expose me to stuff like that13:24
spaetzbut it's quite annoying. Also I used to /etc/init.d/dbus restart just fine without having X killed13:24
spaetzso if you are not aware of the dependency tree, a lot of bad stuff can happen13:24
spaetzwho knows what else X depends on...13:25
KeybukI don't see that it's a bug13:25
Keybukif you're restarting services without understanding what depends on them, you deserve everything you get ;-)13:25
spaetzit might not be a bug, strictly speaking. But I am very much afraid of restarting *any* service now when in a X session.13:26
spaetzSo, is there an easy way to find out the dependency tree?13:26
spaetzIf there is none, then I'd consider that missing crucial functionality :)13:26
Keybukno, because upstart doesn't work by dependencies13:26
spaetzso, how do I find out what else would kill my X?13:27
Keybukread the /etc/init/gdm.conf fiole13:27
spaetze.g. restart hal? dbus? cups? How can I find out?13:27
spaetzwill do, and thanks for your patience13:28
Keybukand then you'll discover that Upstart had no part in your X server restarting13:28
Keybukand, in fact, your X server crashed *all by itself*13:28
spaetzKeybuk: no crash. Windows suddently started closing one after the other13:28
Keybukit's crashing, just awkwardly ;)13:28
spaetzhehe, ok. I'll read the gdm.com stuff and check it out13:29
spaetzfortunately, i didn't have important stuff open13:29
spaetzthe critical line seems to be: start on (filesystem and started hal)13:30
spaetzso when hal stops, gdm would stop13:30
spaetzand I assume hal depends on dbus13:31
spaetzahh, and on udev. So no more udev restarts with running X either.13:31
Keybukno13:31
Keybukincorrect13:31
Keybukthat means that when hal is started, gdm is started13:31
Keybukthe "stop on" line is all about stopping, and that doesn't mention hal13:32
spaetzso when hal stops, gdm wouldn't stop? ok13:32
spaetzso then "restart dbus" making X restart must be a crash13:32
spaetzI recommend to write a blog post about that :)13:32
Keybukwhen hal stops, X crashes13:33
Keybukthat's quite different13:33
Keybukblog away ;)13:33
spaetzmay, I quote bits of our conversation to make things clear?13:34
spaetz-> "may I..."13:34
Keybuksure13:35
Keybukthough my conversation isn't exactly reveraling13:36
spaetzhehe, was interesting enough to me, thanks for the time to explain stuff13:36
spaetznext 24 days must be quite busy :)13:37
spaetzbye13:38
mgoetzeKeybuk: about #433270 - where do those tty-device-added events come from? upstart itself? or do i need an appropriate udev configuration to emit them?13:39
Keybukupstart-udev-bridge13:45
mgoetzethat seems to exist in ubuntu, but i don't use ubuntu...13:47
spaetzI'll probably cut out some parts of the conversation later. But here is a draft quoting us (it's more than bits for now :-) ): http://sspaeth.de/archives/1191-Upstart-killed-the-Video-star.html13:48
Keybukspaetz: the title is rather misleading13:54
Keybuksince we already established that it's X that dies on its own13:55
Keybuksorry, but your blog post has no use13:55
Keybukyou're not documenting anything, just bitching13:56
Keybukso I recall my permission to use anything I've said there13:56
* spaetz shrugs. Your call. Will remove the quoting.13:58
spaetzwe, did start the conversation that way though: 14:22 < spaetz> Is it intended that a "restart dbus" kills my X server and restarts it?13:58
spaetz14:22 < Keybuk> yes13:58
damjanspaetz: yep, that dependecy on the system dbus in the X server is a new "feature"14:12
damjan... and it sucks14:12
damjanbtw, when I was asking (don't remmember what channel) the response was "dbus shouldn't be restarted"14:13
spaetzdamjan: agreed14:13
damjan.. ever14:13
spaetzhaha. Code just shouldn't crash, mem leaks not happen, and Microsoft play nice :-)14:13
spaetzeverything should stand a reload of some other service without crashing on me14:14
mgoetzespaetz: go ahead and write an operating system in erlang then. we're all looking forward to the result, i can tell you14:15
damjanwell, at least Dbus could be written in erlang :)14:17
damjanincerdible, there isn't even a bug report on bugs.freedesktop.org14:17
* spaetz doesn't see what erland has to do with the fact that Xorg seems to have made a design decision that is just plain silly14:18
spaetzs/erland/erlang/14:18
damjanspaetz: an erlang dbus service could "restart" itself without bringing down the connections14:19
damjanbut yeah, the Xorg server just uses the standard lib that doesn't handle disconnections from the bus AFAIK14:19
spaetzI see14:21
damjanbut this bug report claims it's a problem in gnome-session http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=52786014:23
* spaetz just found the same bug report :). THere is also one for Gentoo and Arch.14:24
damjanspaetz: do you use Gnome?14:24
damjanah.. so it was a problem in Awesome too14:26
damjanI should test this again14:26
spaetzGnome yes.14:26
damjanok, so in latest Xorg-server and awesome I don't have the problem .. so X is ok :)14:28
damjanxorg-server 1.6.3.901 here14:29
=== robbiew-afk is now known as robbiew
=== robbiew is now known as robbiew-afk
=== Md_ is now known as Md
=== soren_ is now known as soren
=== robbiew-afk is now known as robbiew
ionkeybuk: I could rebase the fsck-locking branch against the ubuntu-core-dev branch. Or are you already doing that?16:49
ionkeybuk: Rebased and verified to work.17:45
ionkeybuk: “Flush standard output and error before spawning processes to make capturing logs easier (otherwise we end up repeating things still in the buffer).” Ah, so that’s what it was. I guessed the behavior must be related to something getting duplicated with the forks that shouldn’t, but i never got around to investigating it.18:41
=== robbiew is now known as robbiew-afk

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