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

keramxyzz, when i run it with 'sudo start foo' will the process show up when i do ps aux?07:30
keramhmm actually, its saying 'start: Unknown job: foo'07:36
keramah nvm i figured it out :]08:32
saimonHi all, I wrote this upstart script (http://pastie.org/265874) which is supposed to start (on reboot) and keep a monitoring daemon running on my system, and respawn it if it's killed. Unfortunately, it's neither started on reboot, nor is it respawning the monitoring daemon. What am I doing wrong?12:58
saimonThis is the channel for the ubuntu Upstart init daemon right?13:00
saimonanyone?13:11
keramidont know how to help13:39
keramyes13:39
keramif you stick around for a few hours (~24) someone will get to your question13:40
saimonkeram: thanks....13:45
saimon24 hours? That's a high price to pay )13:45
saimon:)13:45
kerama google search may be cheaper :]13:47
saimonkeram: I have and am trying thing as we speak but I'm still not there...13:48
saimonso I'll hang around a bit13:48
keramk13:48
xyzzsaimon i dont think there is anything wrong with your script14:50
xyzzsaimon but the service you are bout to start is forking into background after start?14:51
xyzzis start yourjob saing anything?14:51
saimonxyzz: Well it doesn't seem to work. If I reboot, god isn't started and if I kill -9 it, it isn't respawned either. I've since replaced that with: http://gist.github.com/8777 which I'm trying now. And in answer to your question, yes it forks into the background and 'start myjob' starts it up without complaint.14:52
xyzzand thats the reason, upstart cannot monitor your service, it needs to run un foreground (prefered) od use "daemon" in job definition14:55
saimonxyzz: ah I see...so setting 'daemon' should do it?14:56
xyzzyes14:57
xyzzhttp://upstart.ubuntu.com/wiki/Stanzas14:57
xyzzhere is little more description14:57
saimonxyzz: thanks a lot...trying it now...15:00
saimonorder is unimportant right?15:01
saimonhmm appears I also need to define pid15:02
xyzzorder doesnt matter, upstart uses declarative DSL15:03
saimonok thx15:03
xyzzthe best way is to spawn proces in foreground15:04
saimonok can do that too...15:05
xyzzand that will probably solve your issue :)15:07
saimonmany thanks...15:09
=== suihkulo1ki is now known as suihkulokki

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