=== Keybuk [n=scott@quest.netsplit.com] has joined #upstart === Amaranth [n=travis@ubuntu/member/amaranth] has joined #upstart === Amaranth [n=travis@ubuntu/member/amaranth] has joined #upstart === zarul [n=rs@60.49.92.185] has joined #upstart === zarul [n=rs@60.49.92.185] has left #upstart [] === theCore [n=alex@unaffiliated/thecore] has joined #upstart === wasabi_ [n=wasabi@ubuntu/member/wasabi] has joined #upstart === wasabi_ [n=wasabi@cpe-76-184-96-5.tx.res.rr.com] has joined #upstart === wasabi_ [n=wasabi@ubuntu/member/wasabi] has joined #upstart === wasabi_ [n=wasabi@ubuntu/member/wasabi] has joined #upstart === wasabi_ [n=wasabi@ubuntu/member/wasabi] has joined #upstart === psibox_ [n=dreger@smart.physik.fu-berlin.de] has joined #upstart === jonibo [n=jonas@213.212.2.215] has joined #upstart === Keybuk [n=scott@quest.netsplit.com] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === Amaranth [n=travis@ubuntu/member/amaranth] has joined #upstart [12:40] thom: no new spam since requiring ajax comments [12:40] sweet === Seveas [n=seveas@ubuntu/member/seveas] has joined #upstart [01:48] noice [01:48] now I just have to delete the 50 pages of spam that appeared in the last week === Keybuk wishes there were a way to increase the page size [01:49] heh, yeah, did that for trackback spam yesterday [02:02] presumably page size is template dependent? [02:02] no idea [02:02] I mean the size of the feedback admin page [02:02] 40 is too low [02:04] ah, right [02:04] yeah [02:13] thom: (re: laptops) I'd guess you'd be championing the Lenovo still? [02:13] yep, my x60s is awesome love [02:13] (and core 2 duo parts should be available soon) [02:16] still no touchpad though [02:16] feature not bug [02:17] for you maybe [02:17] I can't use the nipples [02:17] that explains a lot *g* [02:18] the Dell D420 looks nice [02:19] but Dull. [02:20] why Dull? [02:21] generic term for dell, innit. i've never been impressed with their build quality [02:22] the build quality of the new Lenovos some people had at UDS didn't look great either, tbh [02:22] and i know what you do to laptops [02:22] the new HPs looked fairly rugged [02:22] yeah? not seen one [02:22] and jdub's Dell looked pretty rugged too [02:22] the lenovos around here have taken some pretty hefty battering [02:23] someone had one of the new T? series Lenovo - 15" thing [02:23] the case had already cracked, and they'd only had it a month or two [02:23] I don't really want a 14" laptop though, 12" is what I'm after, and Lenovo don't have a good range [02:24] very few options, underpowered comparatively to others in the same range, no touchpad, etc. [02:24] screen is somewhat small now too [02:25] somewhat low-res, I should say [02:42] yeah, 1024x768 is about my only complaint [02:44] everyone with an X60 at UDS/AllHands had severe problems getting them to work with projectors [02:44] have you had that? [02:44] never tried [02:44] i'm pretty sure ross has his working though === theCore [n=alex@ubuntu/member/theCore] has joined #upstart === theCore [n=alex@ubuntu/member/theCore] has joined #upstart [05:58] AlexExtreme: ping [05:58] Keybuk, pong [05:58] AlexExtreme: need an e-mail address for the ChangeLog [05:58] is alex@alex-smith.me.uk ok? [05:58] yes, that's the right one :) [05:59] thanks === theCore [n=alex@ubuntu/member/theCore] has joined #upstart [06:53] <_ion> keybuk: Shouldn't TEST_FILE_RESET in nih/test.h have do { } while (0) around the definition? [06:54] _ion: yes, probably [06:56] <_ion> http://johan.kiviniemi.name/tmp/nih_test.h.diff [07:04] thanks === Keybuk is particularly proud of TEST_CHILD [07:06] <_ion> Yeah, it's neat. :-) [07:18] TEST_FILENAME needs a do { } while (0) too [07:36] AlexExtreme: did you ever solve bug #69950 ? [07:38] it's a splashy bug I think [07:38] so close it if you want === ..[topic/#upstart:Keybuk] : Upstart 0.3.1 | http://upstart.ubuntu.com/ | http://upstart.ubuntu.com/wiki/ | http://upstart.ubuntu.com/doc/getting-started.html | irc logs: http://people.ubuntu.com/~fabbione/irclogs [07:47] whoo, 0.3.1 ;) [07:47] 28 files changed, 3020 insertions(+), 5350 deletions(-) [07:48] 26 files changed, 4891 insertions(+), 7806 deletions(-) [07:48] (upstart and nih) [07:48] cool [07:48] quite an impressive code changage, mostly confirmed to the unit tests :p [07:48] confined, even, not confirmed [07:48] heh [07:49] :) === phsdv [n=paul@dyn-83-156-76-20.ppp.tiscali.fr] has joined #upstart === wasabi [n=jhaltom@ubuntu/member/wasabi] has joined #upstart === juergbi [n=juerg@80-219-26-249.dclient.hispeed.ch] has joined #upstart === AlexExtreme tests 0.3.1 [08:15] brb === maro [n=mark@0x55511dab.adsl.cybercity.dk] has joined #upstart [08:26] seems to work ok [08:26] :-) [08:26] it's not much different from 0.3.0, other than the minor bug fixes [08:27] yeah [08:27] now, i can play with syslog-ng sometime [08:30] bbl [08:56] hmm [08:56] my machine doesn't boot [08:56] I'm sure upgrading to 0.3.1 is a mere coincidence [08:56] la la la [08:58] *shrug* fine that time [08:58] weird [08:59] back === maro reboots :) [09:05] heh, that's just annoying [09:05] i just bumped the gdm package, then a new gdm version gets release [09:05] *released [09:07] always the way [09:10] http://upstart.ubuntu.com/wiki/JobStates [09:10] ^ Would appreciate some eyes on that === maro [n=mark@0x55511dab.adsl.cybercity.dk] has joined #upstart [09:10] I think it's finally stable and actually correct === AlexExtreme looks [09:10] ah, nice, initctl list looks normal again :) [09:13] Keybuk, looks fine to me [09:13] (nice diagram, btw ;)) [09:13] wasabi: ^ [09:21] hi [09:21] oh ok [09:24] does that look right? [09:24] reading [09:29] <_ion> keybuk: Looks good. === Keybuk [n=scott@syndicate.netsplit.com] has joined #upstart [09:34] Keybuk: Random little thought I had while falling asleep. How does the system shutdown right now? [09:34] And how should it shutdown? We've talked a lot about starting, but what about system teardown? [09:34] There are two things I see, the teardown of existing jobs, then the execution of new jobs to put the machine into an off state [09:35] There's obviously the shutdown signal? How should that be used appropiatly? [09:35] one moment [09:36] I was just modeling it in my head... Say you have a "poweroff" task. Should that task be invoked on a signal named "shutdown"? Or is that task something which the user executes (by starting it using a control) [09:36] s/signal/event/ [09:37] If it was a task, it could do stuff like: for each mounted file system { emit file system unmounting; unmount; emit file system unmounted; } signal kernel to power off. [09:38] The unmounting of every file system in turn obviously causes everything to stop. [09:38] right [09:38] so there's a couple of distinct parts to this [09:44] And it can of course block on emitting both signals, causing it to wait until everything is shutdown. [09:44] That introduces another interesting thing. Windows has this thing where some services consciously do not stop on poweroff. They don't go through the effort of anything. The system just powers off. [09:45] They get the stop signal, but know it was caused by the system powering down, and so don't do any work. [09:46] filesystem unmounted will be available to those jobs that start explicitly because of it, but it's also not a good indicator of the reason for the file system being unmounted. [09:47] events being causes by other events, etc. Makes me wonder if $UPSTART_JOB should represent that stack. =) [09:47] Err, $UPSTART_EVENT [09:49] # The primary process is run when entering the start [09:49] state. [09:50] there's no "start" state defiend on the graph, just "exec process" [09:50] minor inconsistency i suspect [09:52] I really do feel that all events emitted internally should block though. [09:52] perhaps just for consistency. [09:57] sorry, juggling a dozen things at once [09:57] s'ok, me too [09:57] so right, two distinct parts [09:57] one is the services that are running; those I think will be defined in terms of other things [09:58] we can largely ignore them from a startup pov. because they're started as a side effect of things like "fhs filesystem", "networking", etc. [09:58] likewise I think we can ignore them from a shutdown pov, because they're stopped as a side effect of the same things going away [09:58] yup [10:01] the side effect here is that it'd negate teardown a little [10:01] otoh, they'd all happen in parallel and most wouldn't have post-stop scripts [10:01] the goal of teardown was to avoid shell scripts that just did kill -TERM with some time-wasting stuff [10:01] we did the kill -TERM *anyway* since we sent kill signals [10:02] the real problem is the shutdown tasks [10:02] the mirror of the startup tasks [10:02] the startup tasks are chained off "startup", and do things like mount the filesystems [10:03] I think likewise, the shutdown tasks are chained off "shutdown" and do things like unmount them [10:03] Is shutdown in fact an event? [10:03] I know it is now. [10:03] Is that right, is that proper? [10:03] it is currently [10:04] I think it has to be, as you need to do something to start bringing things down [10:04] That seems more like using shutdown as a method call. [10:04] I tend to think of events as method calls anyway :p [10:04] Heh. [10:04] If "shutdown" was a job/task, would that be any different/better/whatever? [10:05] Other than looking stupid: [10:05] initctl shutdown start [10:05] I think that having it as a job is a little less flexible [10:05] you could only do one thing with it, by modifying that task [10:05] by having it as an event, you can write any number of tasks to happen simultaneously [10:05] Well, depends how you want to take it. What happens, in what order, on shutdown? [10:05] e.g. bring the filesystem and network down at once [10:05] shutdown is tiny [10:05] You can do that too. The task can emit furthur signals. [10:05] kill all processes [10:06] unmount filesystems [10:06] With more specific meanings. [10:06] reboot() [10:06] Are we commiting to reversing the killall processes with unmounting file systems? [10:06] right, but I think that it's better that if a distro wants to do that, they write a task that emits those signals "on shutdown" [10:06] more flexible [10:06] reversing? [10:06] hmm. [10:06] well, we are no longer going to kill anything in direct response to shutdown. [10:07] Them stoppnig will be a byproduct of their dependencies becoming unavailable: [10:07] networking, file systems. [10:07] That's what makes me think about the shutdown task. [10:07] you'd still need an equivalent to "killall -TERM" [10:07] otherwise you can't unmount the filesystems [10:08] It can do the work of unmounting the file systems, which indirectly emit filesystem-unmounting, and bring down services. [10:08] <_ion> Can't you do a lazy unmount? [10:08] And then it can do the work of killall -TERM. [10:08] Where is that work going? [10:08] _ion: shutdown ... kinda critical it happens before we power off :p [10:08] Hmm... interesting thing, we aren't actually unmounting file systems on shutdown, either... [10:09] We are just making them RO, aren't we? [10:09] wasabi: I figured there'd be a shutdown task started by the shutdown event :) [10:09] wasabi: currently we unmount them [10:09] we make the root ro [10:09] even /? [10:09] <_ion> kebyuk: Ah. :-) [10:09] And there is some sort of guarentee that /bin is on the same fs as / [10:09] heh [10:09] guess there'd have to be he [10:10] and /usr shouldn' tmatter. [10:10] yeah, you can't have /bin and /sbin different to / :) [10:10] otherwise you don't have /sbin/init and /bin/sh [10:10] So, the shutdown task loops file systems, determines which it should unmount, does so, resulting in services stopping. [10:10] I'm thinkiing this [10:11] windows services knowing stop was caused by poweroff ... [10:11] we have that now in two ways [10:11] 1) UPSTART_EVENT = "shutdown" [10:11] for fs in / /usr /usr/local /var /whatever_some_user_has; do ( initctl emit fs-bye-bye $fs *BLOCKING*; umount $fs; initctl emit fs-gone ) *; done [10:11] Err, that last * should be a & [10:12] 2) any event after shutdown (or not) can be matched using complex-event-config [10:12] UPSTART_EVENT won't == shutdown. [10:12] It will equal something sill like network-going-away [10:12] right [10:12] s/sill/silly/ [10:12] Which is what makes me wonder. Should UPSTART_EVENT be the stack? [10:13] it could be [10:13] That wa you could go if [ $UPSTART_EVENT starts with "shutdown" ] [10:13] start state defined on graph => it's defined as the name of the "exec process" node in the text below the graph [10:13] Another interesting thing... from the "shutdown" task. [10:14] If it sees that an event it emits breaks, such as fs-umounting, it can revert. [10:15] If /usr can't be umounted, it can log, then remount everything. [10:15] or just issue "startup" again. [10:15] right [10:15] That can go all the way down to being unable to remount / ro [10:15] started/stopped being blocking events => while it would be "consistent", they wouldn't actually block anything [10:15] quite interesting. ;) [10:15] the interesting thing about the starting/stopping events is that they can actually block the job from starting or stopping [10:16] started/stopped are emitted at the end of a state transition -- so if they block, it has absolutely no effect [10:16] That's true. [10:16] You are right. ;) [10:17] so it'd be an extra code headache to produce no discernable effect :p [10:20] I guess, what I'd be afraid of, is by making shutdown an event, is that other software will in fact attempt to shut itself down on shutdown. [10:20] no worry about that [10:20] e.g. getty :p [10:20] When it should really not do so, it should wait for it's required resources to go away [10:21] And I think there needs to be one entry task for the procedure of shutting down... so it can do network/filesystem/whatever and detect failures to revert both. === maro [n=mark@0x55511dab.adsl.cybercity.dk] has joined #upstart [10:22] network for instance doesn't go down in response to an event, it goes down because something tells it to. [10:23] (back in 15-30 min) [10:49] ok [10:49] yeah for the most part I agree [10:49] I think the reason I dislike having a forced shutdown task is that it's ... icky [10:50] of course, I guess we could define neither in upstart, and just let distros decide whether they do "initctl start shutdown" or "initctl emit shutdown" [10:50] but again, that's kinda icky, because it removes some consistency [10:50] they'd all have a different /sbin/shutdown === theCore [n=alex@ubuntu/member/theCore] has joined #upstart [10:53] how often the bzr branch (http://bazaar.launchpad.net/~keybuk/upstart/main/) is sync'd? [10:54] te [10:54] theCore: dunno, hourly or so I guess [10:54] rev 23? [10:54] 297 [10:54] syndicate scott% bzr revno http://bazaar.launchpad.net/~keybuk/upstart/main/ [10:54] 297 [10:55] oh.... [10:55] nevermind [10:55] did you bzr pull? [10:55] yes [10:55] the tree is sync'd [10:56] ...but...? [10:56] bzr's wasn't clear [10:56] bzr's output [10:56] Using saved location: http://bazaar.launchpad.net/~keybuk/upstart/main/ [10:56] All changes applied successfully. [10:56] 23 revision(s) pulled. [10:57] I thought it was rev23 [10:57] ah, heh [10:57] nah, it means you got 23 new revisions [10:57] top one should be NEWS: Updated [10:57] yeah, I figured it out [10:57] bzr log -r 10..23 [10:57] was kinda weird [10:58] bzr log -r $(($(bzr revno) - 23).. [10:58] err [10:58] bzr log -r $(($(bzr revno) - 23)).. [10:58] :p [10:59] ah, I just found better way [10:59] bzr log -r -10... [10:59] er, bzr log -r -10.. [10:59] ooh [10:59] that's shiny [11:00] I didn't know about that [11:00] me, either [11:04] theCore: pushed the "Bump version to 0.3.2" revision [11:04] see how long that takes to show up [11:07] ah, I know what I am going to do [11:08] I will translate upstart in French :) [11:09] sweet [11:09] I haven't yet worked Rosetta out [11:12] I'm vaguely nagging for it to just have a bzr branch with the translated po files on it :) [11:12] so I can just bzr merge http://rosetta.launchpad.net/products/upstart [11:12] :p [11:14] oh [11:15] I click a button, it sends me a tarball [11:16] all seems a bit ... primitive [11:17] Writing in French with a English keyboard is painful [11:18] I almost never write in French [11:18] I only speak it