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
Hello,
This is important topic, it is nice that you have brought it up.
"Erik E. Fair" <fair%netbsd.org@localhost> 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.
--
BCE HA MOPE!
Home |
Main Index |
Thread Index |
Old Index