/srv/irclogs.ubuntu.com/2011/01/25/#upstart.txt

BaD_CrCIs 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
JanCBaD_CrC: upstart can restart daemons if they exit unexpectedly21:03
BaD_CrCok, 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_CrCare there any good docs to lead me in the direction to using upstart for this task?21:06
JanCinit(5) documents all stanzas you can use in job definitions21:08
BaD_CrCok, i'll give it a shot. thank you.21:08
JanCthe 'respawn' stanza can be used to control respawning21:08
BaD_CrCi think that's what i'm looking for.21:09
JanCit also has a 'limit' parameter21:09
BaD_CrCyeah, 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. :D21:11
JanCalso check out existing jobs in Ubuntu as examples maybe21:25
BaD_CrCyeah, 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_CrCi'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!