/srv/irclogs.ubuntu.com/2009/03/03/#upstart.txt

keesjanybody having a 5.0+ system running16:19
keesj0.516:31
sadmackeesj: Keybuk might've had one16:32
sadmache had a boot chart for a mostly pure upstart system recently. forget which version it was16:32
keesjI have something that kils mine http://www.paste-it.net/raw/public/l01613a/16:32
keesjhttp://www.paste-it.net/public/kc01d79/ (result)16:33
Keybuktraceback please16:33
keesjsomehow becasue of the respawn stanza things go wrong 16:34
keesjKeybuk: I will work on that :p16:35
Keybukit should dump core from a child16:35
Keybukit'll be in /16:35
Keybukyou may need to ulimit -c unlimited in the initramfs, of course16:35
keesjI have a RO system 16:35
Keybukactually16:35
Keybukignore the last bit, I patched upstart to always set ulimit to INFINITY :)16:35
sadmacKeybuk: what are your thoughts on dealing with a system where multiple display managers are installed, and we want to run one of them?16:36
sadmac(but never both)16:36
Keybukdon't install two16:37
Keybukor use a system like alternatives16:37
sadmacthere's a pretty large chunk of Fedora users with full GNOME and KDE on the same system, so I'd like to get this right.16:38
Keybukhow do you do it now?16:38
sadmacwe run a script called prefdm that checks for each of them and runs the first it finds.16:39
sadmacand its ugly and bad and I hate it.16:39
Keybukyou have alternatives in Fedora?16:39
sadmacyeah. I don't know why we don't use it.16:40
sadmacthough I never understood how package managers worked with it.16:40
KeybukI don't think this is an upstart problem16:40
sadmacKeybuk: what if each display manager wants different service management settings? (I wouldn't put it past the various desktop groups to collectively fail in this manner)16:42
keesjhttp://www.paste-it.net/public/ge70991/ (without debugging symbols) but it's a raise 16:42
Keybuksadmac: alternatives handles all this already16:42
Keybukkeesj: 616:42
Keybuk#1  0x4008c160 in abort () from /mnt/lib/libc.so.616:42
KeybukBacktrace stopped: frame did not save the PC16:42
Keybukmeh16:42
sadmacKeybuk: from what I understand alternatives just changes the */bin symlink. it doesn't swap out configuration. especially not for other programs.16:43
Keybukit works today in Ubuntu16:44
Keybukif you install kdm and gdm, both have init scripts16:44
Keybukbut only one of them runs16:44
sadmacI'll look at that then.16:45
keesjthat part is not handled using the alternatives16:45
KeybukI thought it was handled by the file they write16:45
keesjbut generaly alternatives work pretty well , I can imagine the /etc/init.d/job.d/service_gdm is a symlink16:46
sadmacmy first thought was "well, Upstart has a way of reflecting the 'requires' relationship already. 'provides' and 'conflicts' seem like they'd follow."16:46
KeybukI think that overcomplicates things16:47
sadmacdepends. I'd want to see a complete 0.10 first16:48
sadmacif its a fairly small change on top of that I'd say its worth having.16:48
KeybukI don't buy that argument16:48
Keybukwe should only do things where it makes sense :p16:49
Keybuknext you'll be asking for some kind of config handling in Upstart because your package manager sucks at managing /etc :p16:49
sadmacalternatives pushes the concern into the packages. we have to modify the distributions (renaming binaries etc) and we have to do it in a very distro-specific way16:50
sadmaca simple conflict solution in upstart means that this can come upstream in all the display managers.16:51
keesjKeybuk: http://www.paste-it.net/raw/public/i0ad7ab/ better?16:51
Keybukhmm16:52
Keybukthat looks like a different problem16:52
Keybukin fact, you might want to run "cont" there16:52
KeybukI assume that wasn't the core file?16:52
keesjno that's the init16:52
Keybukhow do you mean?16:53
keesjI run gdbserver and attach to pid 116:53
Keybukah16:53
Keybukcan you run "cont"16:53
KeybukSIGPIPE is peffectly normal16:53
keesjI will do cont 16:54
Keybuksadmac: again, I don't buy that16:56
Keybukrah state changed from stopping to killed17:01
Keybukrah state changed from killed to post-stop17:01
Keybukrah post-stop process (32487)17:01
Keybukrah pre-stop process (32484) exited normally17:01
Keybukinit:job_process.c:1103: Assertion failed in job_process_terminated: job->state == JOB_PRE_STOP17:01
Keybukzsh: abort (core dumped)  ./init17:01
Keybukeep17:01
Keybuk1103nih_assert (job->state == JOB_PRE_STOP);17:01
Keybuk(gdb) p job->state17:01
Keybuk$1 = JOB_POST_STOP17:01
keesjI need to go17:02
Keybukit left the running state when the main process ended17:04
Keybukwhile the pre-stop process was still running17:04
Keybukso when the pre-stop process died, it asserted17:04
Keybukkeesj: please file a bug when you get back17:07
Keybukattach the job, and your output, etc.17:07
KeybukI think that the code in job_process_terminated that checks for post-start or pre-stop still running needs to be higher up before the "break" statements ;)17:07
Keybukbut I'll need to make test cases and suchlike17:07
keesjI will17:08
ion_There’s a character in ST:TNG that looks just like MacGyver. http://heh.fi/tmp/tng-macgyver17:15
KeybukThere's a character in Stargate SG-1 that looks just like MacGyver too17:15
ion_:-D17:16
=== sadmac_ is now known as sadmac

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