/srv/irclogs.ubuntu.com/2008/12/04/#upstart.txt

keesjWhat could I put in /etc/init/init.conf ?13:17
shriven_Hello. I'm having some trouble getting my upstart jobs to run on startup. Here is an example of one of my jobs: http://pastebin.com/d784c2e3213:49
shriven_it's meant to keep that ssh connection open so that the port forwards stay open.13:49
shriven_which seems to work great, but I have to start it manually.13:50
shriven_with initctl start "jobname"13:50
shriven_any ideas why this might not be working?13:50
keesjshriven_: I can't see the job the site is dead14:01
keesjtry http://paste-it.net/14:02
keesjdoes it have a start on startup or similar14:02
shriven_yeah14:03
shriven_I've tried "start on startup"14:03
shriven_doesn't seem to do anything14:03
keesjand what does inictl list say ?14:03
shriven_possibly because it requires network and that starts it to soon? to test that I also tried some "start on network and filesystem" one sec and I'll get the paste bin.....14:04
shriven_initctl just says they are "waiting"14:04
shriven_and then as soon as I do initctl start on them they work fine14:04
shriven_keesj: here is the one I tried without "start on startup" seemed to make more sense: http://paste-it.net/public/ice1969/14:06
shriven_keesj: and here is the normal one that also doesn't work: http://paste-it.net/public/u8595e7/14:07
shriven_my /var/log/boot is empty14:10
shriven_I'm not really sure how to get any good information about what is happening. : (14:10
keesjyou can try to start upstart with some extra -vvv14:16
keesjperhaps append console output to your jobs14:16
shriven_hmmm14:17
shriven_is there anyway I could force my jobs to log to somewhere like /var/log/upstart_jobs14:18
shriven_I mean, I know I could make the commands inside the jobs do that, but that wouldn't help me see what upstart is doing so much14:18
shriven_keesj: when you say adding extra verbosity, where would I do that?14:20
keesjit's a upstart "stanza"14:21
shriven_hmmmmm14:21
keesjso if you add "console output" in your job andy error /stdout from that jobs will be shown on the screen14:21
shriven_hmmmm14:22
shriven_would that show information during boot?14:22
keesjyes14:22
shriven_ok. I'll give that a try.14:22
shriven_can't reboot now as it's our router firewall. : ( thanks for the idea I'll try it later.14:23
keesj:p14:23
keesjbe carefull14:23

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