BaD_CrC | Is there a way to use Upstart as a daemon monitor? Currently I use 'monit' to monitor daemons, but it too is a daemon and tends to crash sometime. I'm just wondering if I can eliminate monit and put daemon checking in Upstart? | 21:01 |
---|---|---|
JanC | BaD_CrC: upstart can restart daemons if they exit unexpectedly | 21:03 |
BaD_CrC | ok, the daemons currently start at boot, as expected. one daemon that crashes a lot is pdnsd. i want to figure out how to keep it running. like i said, i was using monit to watch it, but even it crashes sometimes. | 21:05 |
BaD_CrC | are there any good docs to lead me in the direction to using upstart for this task? | 21:06 |
JanC | init(5) documents all stanzas you can use in job definitions | 21:08 |
BaD_CrC | ok, i'll give it a shot. thank you. | 21:08 |
JanC | the 'respawn' stanza can be used to control respawning | 21:08 |
BaD_CrC | i think that's what i'm looking for. | 21:09 |
JanC | it also has a 'limit' parameter | 21:09 |
BaD_CrC | yeah, i'm looking over the manpage now. looks a little over my head at the moment. i'm sure if i go back and read it slowly, i'll get the jist of it. :D | 21:11 |
JanC | also check out existing jobs in Ubuntu as examples maybe | 21:25 |
BaD_CrC | yeah, i looked at the one for cron.conf and it gave me a good idea how to format the .conf file i will be making. | 21:28 |
BaD_CrC | i'm wondering if i should run the daemon directly or as 'exec service pdnsd restart' | 21:29 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!