tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cron script to monitor whether daemons are running


This is important topic, it is nice that you have brought it up.

"Erik E. Fair" <> writes:

> Sometimes essential daemons die when they should not. Without a
> parent watcher process of some kind constantly lying in wait(2),
> someone has to notice and restart them. That is the genesis of the
> following "keepalive" shell script. It may be of some use to some
> of you.

Wouldn't it be better to support something like daemontools or monit?

> #!/bin/sh
> # Monitor the existence of daemons with .pid files and restart as necessary.

"status" command reports "disabled", "running", and "not running".
Sure, the output is a bit inconvenient for automation.
Perhaps we could improve it.


Home | Main Index | Thread Index | Old Index