keesj | What 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/d784c2e32 | 13: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 |
keesj | shriven_: I can't see the job the site is dead | 14:01 |
keesj | try http://paste-it.net/ | 14:02 |
keesj | does it have a start on startup or similar | 14:02 |
shriven_ | yeah | 14:03 |
shriven_ | I've tried "start on startup" | 14:03 |
shriven_ | doesn't seem to do anything | 14:03 |
keesj | and 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 fine | 14: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 empty | 14:10 |
shriven_ | I'm not really sure how to get any good information about what is happening. : ( | 14:10 |
keesj | you can try to start upstart with some extra -vvv | 14:16 |
keesj | perhaps append console output to your jobs | 14:16 |
shriven_ | hmmm | 14:17 |
shriven_ | is there anyway I could force my jobs to log to somewhere like /var/log/upstart_jobs | 14: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 much | 14:18 |
shriven_ | keesj: when you say adding extra verbosity, where would I do that? | 14:20 |
keesj | it's a upstart "stanza" | 14:21 |
shriven_ | hmmmmm | 14:21 |
keesj | so if you add "console output" in your job andy error /stdout from that jobs will be shown on the screen | 14:21 |
shriven_ | hmmmm | 14:22 |
shriven_ | would that show information during boot? | 14:22 |
keesj | yes | 14: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 | :p | 14:23 |
keesj | be carefull | 14:23 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!