Watchdog for dhcpd
David W. Hankins
David_Hankins at isc.org
Tue Sep 5 15:08:30 UTC 2006
On Tue, Sep 05, 2006 at 10:35:15AM -0300, Marcos Iuato wrote:
> Does anyone knows a watchdog to indicate for this purpose?
In my sysadmin days I never liked watchdogs. I preferred this
sort of model of "service keepalives":
(while true ; do
dhcpd -f >/dev/null 2>&1
msg="DHCP exited with status $? on `hostname`"
logger -p daemon.crit $msg
echo $msg | Mail -s 'Service failure' sysadmins at example.com
# Very important - if the config file is bogus or some
# other pesistently bad condition, do not spin...as fast.
Note that this may be equivalent to having your INIT process manage
the daemon (it may have facilities to do precisely this kind of
thing, and using that instead of the above is at least one less
process on the system).
ISC Training! October 16-20, 2006, in the San Francisco Bay Area,
covering topics from DNS to DDNS & DHCP. Email training at isc.org.
David W. Hankins "If you don't do it right the first time,
Software Engineer you'll just have to do it again."
Internet Systems Consortium, Inc. -- Jack T. Hankins
More information about the dhcp-users