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