/srv/irclogs.ubuntu.com/2008/04/07/#upstart.txt

warrenAny Ubuntu user here?  Fedora developer here wondering about how runlevels on Ubuntu behave.18:34
warrenOn Fedora we have runlevels like:18:34
warren1 - single user mode18:34
warren3 - network with text login18:35
warren5 - network with X18:35
warren6 - reboot18:35
warrenWe can use "init X" where X is a number to switch between them18:35
warrenDoes Ubuntu behave anything like this?18:35
Keybukwarren: Ubuntu's runlevels are the same as Debian's18:48
Keybukwe have S and 0 thru 618:48
Keybukwhere 0 and 6 are special (halt and reboot)18:48
Keybuk1 is used for switching to S (single user)18:48
Keybuk2 thru 5 are up to the user to define18:48
Keybukwith 2 as the default18:48
warrenKeybuk: do you understand the /etc/event.d/ file format?18:58
Keybuksometimes18:58
warrenfor example:18:59
warren/etc/event.d/rc3:18:59
warrenstart on runlevel 318:59
warrenstop on runlevel18:59
Keybukright...?18:59
warrenwhat does it mean if you have no number on "stop on runlevel"?19:00
Keybukrunlevel is an event19:00
Keybuk3 is an argument to that event19:00
Keybukthe runlevel event means that the runlevel has changed19:00
Keybukit gets the new runlevel as an argument19:00
Keybukso "on runlevel 3" means "when the runlevel is changed to 3"19:00
Keybuk"on runlevel" just means "when the runlevel is changed"19:00
Keybuk(ie. to any runlevel)19:01
warrenhm19:01
warrenstuff in /etc/event.d are events as well?19:01
Keybukno19:01
Keybukthey are jobs19:02
warrenanother event.d file has:19:02
warrenstart on stopped rc519:02
warrenwhere are the "start on foo" things documented?19:02
Keybukright19:03
Keybukstopped is the event, it means that a job has stopped19:03
Keybukit gets the job name as an argument19:03
Keybukso that means start this job when the rc5 job is stopped19:03
Keybukthe rc5 job probably runs the /etc/rc5.d (or /etc/init.d/rc5.d on "strange distros" :p) directory19:03
Keybukthe events are limitless19:04
Keybukstart on bangbangwibblewheresmypopsicle19:04
Keybukis valid19:04
Keybuksomething just needs to call initctl emit bangbangwibblewheresmypopsicle somewhere19:04
warrenoh crap.  I have to work on a bigger bug. brb.19:05
warrenok, back now.19:31
brendan_Keybuk: is there a way to emit runlevel 2 apart from using the sysv compat runlevel command?21:50
brendan_like "initctl emit runlevel 2"?21:50
brendan_are events allowed to have spaces like that?21:50
Keybukbrendan_: exactly like that22:17
brendan_Keybuk: great! thanks22:18
Keybukthere's no space22:18
Keybukyou're separating an event name and its argument there22:18
warrenKeybuk: our /etc/event.d/rc5 http://fpaste.org/paste/165622:19
warrenKeybuk: it seems that we're setting runlevel 5 in this job22:20
Keybukwarren: looks the same as the demo one?22:20
warrenok...22:20
warreni'm just trying to better understand what's going on22:20
Keybuk"runlevel --set" stores the runlevel in utmp22:20
warrenKeybuk: we're trying to deal with a few upstart bugs22:20
warrenKeybuk: like ... during shutdown you don't see anything22:20
Keybukdo you have "console output" in the rc6 job?22:21
warrenyes22:22
Keybukare you running anything that might change /dev/console ?22:22
warrenchange in what way?22:22
Keybuke.g. usplash, X, rhgb, bootlogd, etc. ?22:22
Keybukredirect22:22
Keybuka common issue is if you run shutdown -h now while under X, the output will go to VT 722:22
warrennot that I'm aware of22:22
warrenso if I switch to VT7 during shutdown I should be able to chdeck22:23
warrencheck22:23
Keybukright22:23
warrenah, you're right!22:23
warrenredirected to VT722:23
warrenKeybuk: here are all of our reported upstart bugs22:25
warrenKeybuk: http://tinyurl.com/4w8cdr22:25
warrenAny ideas about these two? https://bugzilla.redhat.com/show_bug.cgi?id=441339 and https://bugzilla.redhat.com/show_bug.cgi?id=438444 22:26
Keybukback23:01
Keybuksorry, was taking an exam there ;)23:01
Keybukwarren: 441339: is that not the case with sysvinit?23:02
Keybuk438444: that may be a difference in the way that runlevels work in Fedora and Ubuntu?23:03
Keybukin Ubuntu, rc 1 will run /etc/rc1.d which contains a K script for everything in rc2-523:03
Keybukand then finally will run telinit S to switch to S (single-user-mode)23:03
Keybukmaybe Fedora has those two completely backwards?23:03

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