/srv/irclogs.ubuntu.com/2013/02/21/#upstart.txt

stgraberxnox: so did you spend any more time on that qt theming issue? I'm poking at it now but don't want to duplicate debugging effort ;)15:41
tartarWhy would initctl emit mounting MOUNTPOINT=/blah fail?21:57
tartar2013-02-21 15:14:45-05:00 1116 ramdisk: + /sbin/initctl emit mounting MOUNTPOINT=/var/build/ramdisk 2013-02-21 15:14:45-05:00 1116 ramdisk: initctl: Event failed 2013-02-21 15:14:45-05:00 1116 ramdisk: EXITCODE=121:58
tartarErr21:58
tartar2013-02-21 15:14:45-05:00 1116 ramdisk: + /sbin/initctl emit mounting MOUNTPOINT=/var/build/ramdisk21:58
tartar2013-02-21 15:14:45-05:00 1116 ramdisk: initctl: Event failed21:58
tartar2013-02-21 15:14:45-05:00 1116 ramdisk: EXITCODE=121:58
tartarUbuntu Lucid here21:59
tartarWill looping till success work this around?21:59
tartar(I saw few mounting hooks with same MOUNTPOINT coming to my block-dependants task.  I wonder if mountall already does the same work-around).22:00
xnoxtartar: I am sorry, but what are you trying to do?22:01
tartarI am sticking centrify and couple more things early into the startup.22:02
xnoxmountall emits these events for all mountpoints in /lib/init/fstab as well as anything in your fstab.22:02
tartarIn particular, my ramdisk.conf simulates the mountall behavior by emitting a mounting hook22:03
tartarI need my ramdisk to block until centrify is ready and for this I added a block-dependants task22:04
tartarBut I see that ramdisk's initctl emit fails to block returning the error above22:04
xnoxhave you seen: http://upstart.ubuntu.com/cookbook/#block-another-job-until-yours-has-started22:05
xnoxemitting events will simply spawn more stuff to happen & get activated not less.22:05
tartarYup, that's where I got the block-dependants thing22:05
tartar(BTW instance $JOB resulted in an error message saying that JOB did not exist.  Perhaps my Lucid upstart is too old for the cook book)22:07
tartarI replaced that with instance mounting-$MOUNTPOINT22:07
tartarShould better read as mountall-$MOUNTING as I expect that mountall emits mounting hooks, and $JOB would receive "mountall"22:09
tartarerr mountall-$MOUNTPOINT22:10
tartar...if I understand this correctly22:10
tartarActually now I see I went against the recipe by instantiating too many instances22:11
tartarshould my block-dependants task use "instance mountall"?22:12
tartarI wish upstart clearly stated own mechanisms and those expected from other processes.22:48
tartarFor now the cook book reflects its name giving mostly recipes rather than architectural knowledge.22:48
tartarTo illustrate, the following phrase has unnecessary complications.  The change of the mode from educational to instructional and back brings confusion.22:50
tartar"What you will find is that if you run the script above under /bin/sh, in all likelihood the file will never be created since regardless of whether you specify "-e" or not, the dash(1) shell (which /bin/sh is linked to on Ubuntu systems) has different semantics when it comes to sourcing compared with /bin/bash."22:50
tartarI would steer away from giving any instruction in a text about a thing that I would need to understand.22:52
tartar(I failed to understand the quoted phrase).22:54
tartarEnough vitriolic ranting....22:56
tartarThe section block-another-job-until-yours-has-started assumes that the blocker task multiplies itself to block each job emitting one of the hooks.  Why?23:38
tartarCan a single blocker task block all hook emitters?23:38
tartars/task/instance/23:39

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