#!/bin/bash . /etc/sysconfig/watchdog PROGRAM=/usr/sbin/watchdog ARGS="$WD_OPTS" RUNLEVEL=3 NEEDS="+remote_fs" . /etc/init.d/smgl_init start() { echo "Starting watchdog..." if ! [ -e /dev/watchdog ] ; then echo "No watchdog support in the kernel!" exit 5 fi loadproc $PROGRAM $ARGS } stop() { echo "Stopping watchdog..." if [ -e /var/run/watchdog.pid ]; then kill $(cat /var/run/watchdog.pid) else /bin/false fi evaluate_retval } .