/srv/irclogs.ubuntu.com/2006/12/13/#upstart.txt

=== 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
Keybukthom: no new spam since requiring ajax comments12:40
Keybuksweet12:40
=== Seveas [n=seveas@ubuntu/member/seveas] has joined #upstart
thomnoice01:48
Keybuknow I just have to delete the 50 pages of spam that appeared in the last week <g>01:48
=== Keybuk wishes there were a way to increase the page size
thomheh, yeah, did that for trackback spam yesterday01:49
thompresumably page size is template dependent?02:02
Keybukno idea02:02
KeybukI mean the size of the feedback admin page02:02
Keybuk40 is too low02:02
thomah, right02:04
thomyeah02:04
Keybukthom: (re: laptops) I'd guess you'd be championing the Lenovo still?02:13
thomyep, my x60s is awesome love02:13
thom(and core 2 duo parts should be available soon)02:13
Keybukstill no touchpad though02:16
thomfeature not bug02:16
Keybukfor you maybe02:17
KeybukI can't use the nipples02:17
thomthat explains a lot *g*02:17
Keybukthe Dell D420 looks nice02:18
thombut Dull.02:19
Keybukwhy Dull?02:20
thomgeneric term for dell, innit. i've never been impressed with their build quality02:21
Keybukthe build quality of the new Lenovos some people had at UDS didn't look great either, tbh02:22
thomand i know what you do to laptops02:22
Keybukthe new HPs looked fairly rugged02:22
thomyeah? not seen one02:22
Keybukand jdub's Dell looked pretty rugged too02:22
thomthe lenovos around here have taken some pretty hefty battering02:22
Keybuksomeone had one of the new T? series Lenovo - 15" thing02:23
Keybukthe case had already cracked, and they'd only had it a month or two02:23
KeybukI don't really want a 14" laptop though, 12" is what I'm after, and Lenovo don't have a good range02:23
Keybukvery few options, underpowered comparatively to others in the same range, no touchpad, etc.02:24
Keybukscreen is somewhat small now too02:24
Keybuksomewhat low-res, I should say02:25
thomyeah, 1024x768 is about my only complaint02:42
Keybukeveryone with an X60 at UDS/AllHands had severe problems getting them to work with projectors02:44
Keybukhave you had that?02:44
thomnever tried02:44
thomi'm pretty sure ross has his working though02:44
=== theCore [n=alex@ubuntu/member/theCore] has joined #upstart
=== theCore [n=alex@ubuntu/member/theCore] has joined #upstart
KeybukAlexExtreme: ping05:58
AlexExtremeKeybuk, pong05:58
KeybukAlexExtreme: need an e-mail address for the ChangeLog05:58
Keybukis alex@alex-smith.me.uk ok?05:58
AlexExtremeyes, that's the right one :)05:58
Keybukthanks05:59
=== theCore [n=alex@ubuntu/member/theCore] has joined #upstart
_ionkeybuk: Shouldn't TEST_FILE_RESET in nih/test.h have do { } while (0) around the definition?06:53
Keybuk_ion: yes, probably06:54
_ionhttp://johan.kiviniemi.name/tmp/nih_test.h.diff06:56
Keybukthanks07:04
=== Keybuk is particularly proud of TEST_CHILD <g>
_ionYeah, it's neat. :-)07:06
KeybukTEST_FILENAME needs a do { } while (0) too07:18
KeybukAlexExtreme: did you ever solve bug #69950 ?07:36
AlexExtremeit's a splashy bug I think07:38
AlexExtremeso close it if you want07:38
=== ..[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
AlexExtremewhoo, 0.3.1 ;)07:47
Keybuk 28 files changed, 3020 insertions(+), 5350 deletions(-)07:47
Keybuk 26 files changed, 4891 insertions(+), 7806 deletions(-)07:48
Keybuk(upstart and nih)07:48
AlexExtremecool07:48
Keybukquite an impressive code changage, mostly confirmed to the unit tests :p07:48
Keybukconfined, even, not confirmed07:48
Keybukheh07:48
AlexExtreme:)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
AlexExtremebrb08:15
=== maro [n=mark@0x55511dab.adsl.cybercity.dk] has joined #upstart
AlexExtremeseems to work ok08:26
Keybuk:-)08:26
Keybukit's not much different from 0.3.0, other than the minor bug fixes08:26
AlexExtremeyeah08:27
AlexExtremenow, i can play with syslog-ng sometime08:27
AlexExtremebbl08:30
Keybukhmm08:56
Keybukmy machine doesn't boot08:56
KeybukI'm sure upgrading to 0.3.1 is a mere coincidence08:56
Keybukla la la08:56
Keybuk*shrug* fine that time08:58
Keybukweird08:58
AlexExtremeback08:59
=== maro reboots :)
AlexExtremeheh, that's just annoying09:05
AlexExtremei just bumped the gdm package, then a new gdm version gets release09:05
AlexExtreme*released09:05
Keybukalways the way09:07
Keybukhttp://upstart.ubuntu.com/wiki/JobStates09:10
Keybuk^ Would appreciate some eyes on that09:10
=== maro [n=mark@0x55511dab.adsl.cybercity.dk] has joined #upstart
KeybukI think it's finally stable and actually correct09:10
=== AlexExtreme looks
maroah, nice, initctl list looks normal again :)09:10
AlexExtremeKeybuk, looks fine to me09:13
AlexExtreme(nice diagram, btw ;))09:13
Keybukwasabi: ^09:13
wasabihi09:21
wasabioh ok09:21
Keybukdoes that look right?09:24
wasabireading09:24
_ionkeybuk: Looks good.09:29
=== Keybuk [n=scott@syndicate.netsplit.com] has joined #upstart
wasabiKeybuk: Random little thought I had while falling asleep. How does the system shutdown right now?09:34
wasabiAnd how should it shutdown? We've talked a lot about starting, but what about system teardown?09:34
wasabiThere are two things I see, the teardown of existing jobs, then the execution of new jobs to put the machine into an off state09:34
wasabiThere's obviously the shutdown signal? How should that be used appropiatly?09:35
Keybukone moment09:35
wasabiI 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
wasabis/signal/event/09:36
wasabiIf 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:37
wasabiThe unmounting of every file system in turn obviously causes everything to stop.09:38
Keybukright09:38
Keybukso there's a couple of distinct parts to this09:38
wasabiAnd it can of course block on emitting both signals, causing it to wait until everything is shutdown.09:44
wasabiThat 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:44
wasabiThey get the stop signal, but know it was caused by the system powering down, and so don't do any work.09:45
wasabifilesystem 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:46
wasabievents being causes by other events, etc. Makes me wonder if $UPSTART_JOB should represent that stack. =)09:47
wasabiErr, $UPSTART_EVENT09:47
wasabi# The primary process is run when entering the start09:49
wasabistate.09:49
wasabithere's no "start" state defiend on the graph, just "exec process"09:50
wasabiminor inconsistency i suspect09:50
wasabiI really do feel that all events emitted internally should block though.09:52
wasabiperhaps just for consistency.09:52
Keybuksorry, juggling a dozen things at once09:57
wasabis'ok, me too09:57
Keybukso right, two distinct parts09:57
Keybukone is the services that are running; those I think will be defined in terms of other things09:57
Keybukwe 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
Keybuklikewise I think we can ignore them from a shutdown pov, because they're stopped as a side effect of the same things going away09:58
wasabiyup09:58
Keybukthe side effect here is that it'd negate teardown a little10:01
Keybukotoh, they'd all happen in parallel and most wouldn't have post-stop scripts10:01
Keybukthe goal of teardown was to avoid shell scripts that just did kill -TERM with some time-wasting stuff10:01
Keybukwe did the kill -TERM *anyway* since we sent kill signals10:01
Keybukthe real problem is the shutdown tasks10:02
Keybukthe mirror of the startup tasks10:02
Keybukthe startup tasks are chained off "startup", and do things like mount the filesystems10:02
KeybukI think likewise, the shutdown tasks are chained off "shutdown" and do things like unmount them10:03
wasabiIs shutdown in fact an event?10:03
wasabiI know it is now.10:03
wasabiIs that right, is that proper?10:03
Keybukit is currently10:03
KeybukI think it has to be, as you need to do something to start bringing things down10:04
wasabiThat seems more like using shutdown as a method call.10:04
KeybukI tend to think of events as method calls anyway :p10:04
wasabiHeh.10:04
wasabiIf "shutdown" was a job/task, would that be any different/better/whatever?10:04
wasabiOther than looking stupid:10:05
wasabiinitctl shutdown start10:05
KeybukI think that having it as a job is a little less flexible10:05
Keybukyou could only do one thing with it, by modifying that task10:05
Keybukby having it as an event, you can write any number of tasks to happen simultaneously10:05
wasabiWell, depends how you want to take it. What happens, in what order, on shutdown?10:05
Keybuke.g. bring the filesystem and network down at once10:05
Keybukshutdown is tiny10:05
wasabiYou can do that too. The task can emit furthur signals.10:05
Keybukkill all processes10:05
Keybukunmount filesystems10:06
wasabiWith more specific meanings.10:06
Keybukreboot()10:06
wasabiAre we commiting to reversing the killall processes with unmounting file systems?10:06
Keybukright, 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
Keybukmore flexible10:06
Keybukreversing?10:06
wasabihmm.10:06
wasabiwell, we are no longer going to kill anything in direct response to shutdown.10:06
wasabiThem stoppnig will be a byproduct of their dependencies becoming unavailable:10:07
wasabinetworking, file systems.10:07
wasabiThat's what makes me think about the shutdown task.10:07
Keybukyou'd still need an equivalent to "killall -TERM"10:07
Keybukotherwise you can't unmount the filesystems10:07
wasabiIt can do the work of unmounting the file systems, which indirectly emit filesystem-unmounting, and bring down services.10:08
_ionCan't you do a lazy unmount?10:08
wasabiAnd then it can do the work of killall -TERM.10:08
wasabiWhere is that work going?10:08
Keybuk_ion: shutdown ... kinda critical it happens before we power off :p10:08
wasabiHmm... interesting thing, we aren't actually unmounting file systems on shutdown, either...10:08
wasabiWe are just making them RO, aren't we?10:09
Keybukwasabi: I figured there'd be a shutdown task started by the shutdown event :)10:09
Keybukwasabi: currently we unmount them10:09
Keybukwe make the root ro10:09
wasabieven /?10:09
_ionkebyuk: Ah. :-)10:09
wasabiAnd there is some sort of guarentee that /bin is on the same fs as /10:09
wasabiheh10:09
wasabiguess there'd have to be he10:09
wasabiand /usr shouldn' tmatter.10:10
Keybukyeah, you can't have /bin and /sbin different to / :)10:10
Keybukotherwise you don't have /sbin/init and /bin/sh <g>10:10
wasabiSo, the shutdown task loops file systems, determines which it should unmount, does so, resulting in services stopping.10:10
wasabiI'm thinkiing this10:10
Keybukwindows services knowing stop was caused by poweroff ...10:11
Keybukwe have that now in two ways10:11
Keybuk1) UPSTART_EVENT = "shutdown"10:11
wasabifor fs in / /usr /usr/local /var /whatever_some_user_has; do ( initctl emit fs-bye-bye $fs *BLOCKING*; umount $fs; initctl emit fs-gone ) *; done10:11
wasabiErr, that last * should be a &10:11
Keybuk2) any event after shutdown (or not) can be matched using complex-event-config10:12
wasabiUPSTART_EVENT won't == shutdown.10:12
wasabiIt will equal something sill like network-going-away10:12
Keybukright10:12
wasabis/sill/silly/10:12
wasabiWhich is what makes me wonder. Should UPSTART_EVENT be the stack?10:12
Keybukit could be10:13
wasabiThat wa you could go if [ $UPSTART_EVENT starts with "shutdown" ] 10:13
Keybukstart state defined on graph => it's defined as the name of the "exec process" node in the text below the graph10:13
wasabiAnother interesting thing... from the "shutdown" task.10:13
wasabiIf it sees that an event it emits breaks, such as fs-umounting, it can revert.10:14
wasabiIf /usr can't be umounted, it can log, then remount everything.10:15
wasabior just issue "startup" again.10:15
Keybukright10:15
wasabiThat can go all the way down to being unable to remount / ro10:15
Keybukstarted/stopped being blocking events => while it would be "consistent", they wouldn't actually block anything10:15
wasabiquite interesting. ;)10:15
Keybukthe interesting thing about the starting/stopping events is that they can actually block the job from starting or stopping10:15
Keybukstarted/stopped are emitted at the end of a state transition -- so if they block, it has absolutely no effect10:16
wasabiThat's true.10:16
wasabiYou are right. ;)10:16
Keybukso it'd be an extra code headache to produce no discernable effect :p10:17
wasabiI 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
Keybukno worry about that10:20
Keybuke.g. getty :p10:20
wasabiWhen it should really not do so, it should wait for it's required resources to go away10:20
wasabiAnd 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.10:21
=== maro [n=mark@0x55511dab.adsl.cybercity.dk] has joined #upstart
wasabinetwork for instance doesn't go down in response to an event, it goes down because something tells it to.10:22
Keybuk(back in 15-30 min)10:23
Keybukok10:49
Keybukyeah for the most part I agree10:49
KeybukI think the reason I dislike having a forced shutdown task is that it's ... icky10:49
Keybukof 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
Keybukbut again, that's kinda icky, because it removes some consistency10:50
Keybukthey'd all have a different /sbin/shutdown10:50
=== theCore [n=alex@ubuntu/member/theCore] has joined #upstart
theCorehow often the bzr branch (http://bazaar.launchpad.net/~keybuk/upstart/main/) is sync'd?10:53
Keybukte10:54
KeybuktheCore: dunno, hourly or so I guess10:54
theCorerev 23?10:54
Keybuk29710:54
Keybuksyndicate scott% bzr revno http://bazaar.launchpad.net/~keybuk/upstart/main/10:54
Keybuk29710:54
theCoreoh.... 10:55
theCorenevermind10:55
Keybukdid you bzr pull?10:55
theCoreyes10:55
theCorethe tree is sync'd10:55
Keybuk...but...?10:56
theCorebzr's wasn't clear10:56
theCorebzr's output10:56
theCoreUsing saved location: http://bazaar.launchpad.net/~keybuk/upstart/main/10:56
theCoreAll changes applied successfully.10:56
theCore23 revision(s) pulled.10:56
theCoreI thought it was rev2310:57
Keybukah, heh10:57
Keybuknah, it means you got 23 new revisions10:57
Keybuktop one should be NEWS: Updated10:57
theCoreyeah, I figured it out10:57
theCorebzr log -r 10..2310:57
theCorewas kinda weird10:57
Keybukbzr log -r $(($(bzr revno) - 23)..10:58
Keybukerr10:58
Keybukbzr log -r $(($(bzr revno) - 23))..10:58
Keybuk:p10:58
theCoreah, I just found better way10:59
theCorebzr log -r -10...10:59
theCoreer, bzr log -r -10..10:59
Keybukooh10:59
Keybukthat's shiny10:59
KeybukI didn't know about that <g>11:00
theCoreme, either11:00
KeybuktheCore: pushed the "Bump version to 0.3.2" revision11:04
Keybuksee how long that takes to show up11:04
theCoreah, I know what I am going to do11:07
theCoreI will translate upstart in French :)11:08
Keybuksweet11:09
KeybukI haven't yet worked Rosetta out11:09
KeybukI'm vaguely nagging for it to just have a bzr branch with the translated po files on it :)11:12
Keybukso I can just bzr merge http://rosetta.launchpad.net/products/upstart11:12
Keybuk:p11:12
theCoreoh11:14
KeybukI click a button, it sends me a tarball11:15
Keybukall seems a bit ... primitive11:16
theCoreWriting in French with a English keyboard is painful11:17
theCoreI almost never write in French11:18
theCoreI only speak it11:18

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