/srv/irclogs.ubuntu.com/2013/03/08/#upstart.txt

ebelOK, this is weird. I have an upstart job that starts a SSH tunnel to a host. But I can't stop it!16:13
ebelit was running, and when I "stop JOBNAME" it, the ssh process is still running.16:14
xnoxebel: probably tracking wrong pid.16:14
xnoxebel: compare ps output with `status yourjobname`. Do the pids match?16:14
ebelhttp://pastebin.com/9XghsZFu FYI this is the /etc/init/JOBNAME.conf16:15
ebelxnox: ah, yeah, different pids...16:16
ebelI should use "expect" here16:16
ebelI read that part of manual, but I thought ssh would stay in foreground....16:16
ebelafter I 'stop JOBNAME' it, the process is still running. But if I kill the PID, then a new one starts up again16:17
SpamapSebel: you should not need expect16:34
SpamapSebel: you don't need to use sudo16:34
SpamapSebel: setuid svn_ssh is all you need there16:35
SpamapSebel: a whole raft of things wrong with that upstart job.16:36
SpamapSebel: 1: start on startup means you will start before networking, before filesystems are mounted, before EVERYTHING16:36
SpamapSebel: you want 'start on runlevel [2345]'16:36
ebelthis is my first attempt at an upstart job...16:36
SpamapSebel: oh and two start ons means 'start on startup' isn't actually going to be used, so 'started network-services' will be used16:36
SpamapSebel: I have almost the exact same thing... I use keep-one-running to keep mine up though, because upstart is too eager to give up with respawn16:37
ebelgah, i've stopped the upstart job, and the ssh process is still there. i keep trying to kill it but something is respawning it....16:39
SpamapShttp://paste.ubuntu.com/5596412/16:40
SpamapSebel: thats what I use to keep a tunnel up (changed to use some of your values ;)16:40
SpamapSebel: note that I have vmstat 30 doing my alive interval ;)16:40
SpamapShm, I guess -TN would have been better :)16:41
SpamapSebel: anyway, I've been using that job for a couple of years now16:41
ebelthanks16:42
ebelgah, now it says "unknown job" when I try to start it...16:44
ebelanyway to do a syntax check or something?16:45
SpamapSebel: init-checkconf16:46
ebeldon't have that command16:47
ebelubuntu 10.04 server16:48
SpamapSebel: oohhh17:09
SpamapSebel: then you do need sudo :-P17:09
SpamapSebel: you know.. 12.04 released almost a year ago.. :)17:09
ebel;)17:09
ebelis there anyway to see if it's upstart that's restarting/respawning this ssh process? is there logs or something?17:33
SpamapSebel: initctl log-priority info17:44
SpamapSebel: though I think default logging priority would show upstart messages on respawn17:44
ebelwhere are the logs?17:46
ebelrestarting the server is maybe an option, but don't want to have to17:46
ebelah syslog17:47
ebelfeck it, rebooting server17:50
ebelhit it with a big hammer17:50

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