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