/srv/irclogs.ubuntu.com/2009/12/14/#upstart.txt

=== pocek_ is now known as pocek
ionkeybuk: Some small fixes, https://code.edge.launchpad.net/~ion/ubuntu/lucid/mountall/lucid06:28
ionkeybuk: Also an autoreconf commit is needed at some point.06:31
KeybukI've been committing autoreconf as I go06:32
Keybukit builds here ;)06:32
ionconf/Makefile.in doesn’t install the new conf/mounted-* files even though conf/Makefile.am was updated.06:33
Keybukoh, I probably didn't test that yet06:33
ionBefore making the $MOUNTPOINT guard change, i hosed my virtualbox test machine by running ‘start mounted-tmp’ without thinking. find happily proceeded to delete files under /. ;-)06:37
Keybuklol06:42
Keybukthat's pessimal06:44
KeybukI shall take a look06:46
Keybukjust catching up with e-mail atm06:46
ionI’m not sure if i’m doing the right thing in the “Handle remounts again” commit, but it does make my VM boot again. The “Now supports multiple filesystem types listed in fstab” commit caused mounted () never to be called after the successful remount of /.06:49
Keybukoh, hmm06:49
Keybukyeah that's probably a bug06:49
Keybukbecause forcing parse_mountinfo() won't reflag it as mounted06:49
Keybukthis whole filesystem thing is a hard problem <g>06:50
Keybukthough I'm happy that more code is moving out of mountall again now - fits the idea better that it'll be a tool to parse files and auto-generate upstart jobs from them06:50
ionYeah06:50
ionAlso, i finished Voyager last night. Next up: Enterprise.06:52
Keybukmy god06:54
Keybukyou brave man06:54
ionI’ve been watching all Star Trek series in the original air date order.06:57
ionYes, even TAS.06:59
ionIt was hilariously bad.06:59
KeybukI watched DS9 end-to-end07:01
KeybukI had thought that I hadn't watched much of it before07:01
Keybukbut in practice, it's turned out that I had watched almost all of the first six seasons07:01
Keybukright07:58
Keybukthat's me caught up on e-mail and bugs now07:58
KeybukI shall have breakfast then look at your branch, ion07:59
Keybukion: around?08:20
=== [2]sassyn is now known as sassyn
=== ev1 is now known as ev
=== danderso1 is now known as danderson
=== robbiew_ is now known as robbiew
ionkeybuk: Around.17:09
Keybukion: still around? :)18:11
ionYeah18:11
Keybukso I've merged a couple of your patches, but not most of them18:12
Keybuk196: I don't see what this patch does18:12
Keybukfrom what I can tell, this would hide valid errors that should break the hook script18:13
Keybukthe stated aim is to handle the file not existing, but the [ -f ... ] && on the front *already*does*that*18:13
Keybukno?18:13
ion[ -f /etc/motd.tail ] && whatever when /etc/motd.tail doesn’t exist → false && whatever → false → the script dies with set -e18:14
Keybukno it doesn't18:14
ionAh, sorry.18:14
Keybuk-e will only terminate the script on statuses that you do not check18:15
Keybukotherwise it'd terminate on every "if" or "while"18:15
Keybukhttp://www.opengroup.org/onlinepubs/009695399/utilities/set.html18:15
ionI just looked at sh -ec '[ -f /etc/motd.tail ] && cat /etc/motd.tail' and saw it returning 1. I should have added ‘; echo foo’ to it to make sure and not just assume.18:15
Keybuk-e  When this option is on, if a simple command fails for any of the reasons listed in Consequences of Shell Errors or returns an exit status value >0, and is not part of the compound list following a while, until, or if keyword, and is not a part of an AND or OR list, and is not a pipeline preceded by the ! reserved word, then the shell shall immediately exit.18:15
Keybuk"and is not a part of an AND or OR list" being the key bit18:16
ionYeah18:16
Keybuk198 I've done in a different way18:16
Keybuk199 was fixed already but not pushed18:17
ionYeah, you fixed remounts better indeed.18:17
Keybuk201 I just don't agree with18:17
Keybukif I'd wanted to fix the hooks to only be possible to run with certain mountpoints, I would have just hardcoded the paths instead of actually using $MOUNTPOINT :)18:17
Keybukif people run those by themselves, and screw up, that's their own funeral <g>18:17
ionAlright. But it might be non-obvious to sysadmin that a ‘start mounted-tmp’ might delete everything. How about a [ -n "$MOUNTPOINT" ] check?18:18
Keybukif sysadmins are going around starting random jobs without even reading them, that's their own fault18:19
ionOk18:20
ionIs dying if a connection to plymouth fails the right thing to do?18:21
Keybukthat being said, Upstart should have more of a facility for "required arguments"18:21
Keybukion: yes, I think so18:21
Keybukotherwise mountall won't be able to get help from the user18:21
ionOk18:22
=== robbiew1 is now known as robbiew
=== robbiew is now known as robbiew_
=== robbiew_ is now known as robbiew
wasabiSo. Ever considered a feature in Upstart to parse /etc/init.d files and build a bunch of jobs in a rc.* namespace? :)23:13

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