[07:30] xyzz, when i run it with 'sudo start foo' will the process show up when i do ps aux? [07:36] hmm actually, its saying 'start: Unknown job: foo' [08:32] ah nvm i figured it out :] [12:58] Hi 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? [13:00] This is the channel for the ubuntu Upstart init daemon right? [13:11] anyone? [13:39] idont know how to help [13:39] yes [13:40] if you stick around for a few hours (~24) someone will get to your question [13:45] keram: thanks.... [13:45] 24 hours? That's a high price to pay ) [13:45] :) [13:47] a google search may be cheaper :] [13:48] keram: I have and am trying thing as we speak but I'm still not there... [13:48] so I'll hang around a bit [13:48] k [14:50] saimon i dont think there is anything wrong with your script [14:51] saimon but the service you are bout to start is forking into background after start? [14:51] is start yourjob saing anything? [14:52] xyzz: 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:55] and thats the reason, upstart cannot monitor your service, it needs to run un foreground (prefered) od use "daemon" in job definition [14:56] xyzz: ah I see...so setting 'daemon' should do it? [14:57] yes [14:57] http://upstart.ubuntu.com/wiki/Stanzas [14:57] here is little more description [15:00] xyzz: thanks a lot...trying it now... [15:01] order is unimportant right? [15:02] hmm appears I also need to define pid [15:03] order doesnt matter, upstart uses declarative DSL [15:03] ok thx [15:04] the best way is to spawn proces in foreground [15:05] ok can do that too... [15:07] and that will probably solve your issue :) [15:09] many thanks... === suihkulo1ki is now known as suihkulokki