#!/bin/sh
#

DESC="watchdog daemon"
NAME=watchdog
DAEMON=/usr/sbin/$NAME

# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0

# Read config file if it is present.
if [ -r /etc/default/$NAME ]; then
    . /etc/default/$NAME
fi

start() {
    cp -f /etc/default/$NAME.conf /etc/$NAME.run.conf
    
    $DAEMON $WATCHDOG_OPTS
}

case "$1" in
  start)
    start
    ;;
  stop)
    ;;
  restart|reload)
    ;;
  *)
    echo $"Usage: $0 {start|stop|restart}"
    exit 1
esac

exit $?
