/srv/irclogs.ubuntu.com/2011/06/22/#upstart.txt

=== ion_ is now known as ion
jp_larocqueWhat's the best way to figure out why upstart is blocking system startup on something?  I'm having a heck of a time trying to write a couple of upstart job definitions.17:04
jp_larocqueWell, I'm disappointed to report that after maybe 6 hours across a few days of trying to do this the right way, the only tractible solution was to mangle existing definitions to call old /etc/init.d scripts.  Upstart is just way too complicated for me, and I can't predict how it makes decisions, or what it's doing.17:57
JanCdid you enable verbose logging?18:06
JanCjp_larocque: are you using http://upstart.ubuntu.com/cookbook/ ?18:07
JanChttp://upstart.ubuntu.com/cookbook/#debugging18:08
jp_larocqueJanC: Verbose logging told me that my jobs weren't starting, and the lack of activity told me that there was a deadlock, but not the cause of either.19:54
jp_larocqueI have been reading through a bit of the cookbook, but not the entire thing.  I probably could have done more research before giving up.19:55
JanCin that case, you'll have to see what the start conditions for the jobs that don't start are?19:55
jp_larocqueWell, I wrote the job definitions.  For the "setkey" defintion, there were no start conditions (which I think means start at any point not further restricted by other definitions), and for the "racoon" definition the start condition was "start on (started setkey and starting mountall-net)".20:00
jp_larocqueWhich I optimistically thought meant that upstart would ensure setkey starts before racoon, and the start of mountall-net is blocked until racoon is started.20:00
JanCno start conditions means it will only start when you start it manually?20:01
jp_larocqueBut I'm having a hard time finding precise language that specifies how jobs are ordered.20:01
jp_larocqueOh?  I had not realized that.20:01
JanCyou can use "start on startup" to start a job ASAP20:04
jp_larocqueBut having upstart print something along the lines of "racoon blocked until `started job=setkey' event" would be immensely helpful in troubleshooting these issues.20:04
JanCalthough "start on startup" means that it might start before filesystems are available etc.20:05
jp_larocqueYeah.20:05
JanCmaybe that's okay, or maybe you want some other event to start it on20:06
jp_larocqueAnyway, thought I'd provide some feedback on why I gave up.  I could easily waste many more hours trying to get this done the right way, but I'm ready to have a booting computer with IPsec-protected NFS home directories now.  =)20:06
jp_larocqueThanks for the information.20:07

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