4df8065ea32f001cd8812daea6695afaa378b4a3
# description: check is some hosts are alive
# processname: icmpmonitor
.
/etc
/rc.d
/init.d
/functions
# Check that networking is up.
if [ ${NETWORKING} = "no" ] ; then
[ -f /usr
/local
/sbin
/icmpmonitor
] ||
exit 0
[ -f /usr
/local
/etc
/icmpmonitor.cfg
] ||
exit 0
# See how we were called.
echo -n "Starting icmpmonitor: "
daemon
/usr
/local
/sbin
/icmpmonitor
-d -f /usr
/local
/etc
/icmpmonitor.cfg
[ $RETVAL -eq 0 ] && touch /var
/lock
/subsys
/icmpmonitor
echo -n "Stopping icmpmonitor: "
[ $RETVAL -eq 0 ] && rm -f /var
/lock
/subsys
/icmpmonitor
echo "Usage: $0 {start|stop|status|restart}"