#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/app-admin/watchdog/files/5.2/watchdog,v 1.2 2003/02/14 22:35:13 vapier Exp $

depend() {
	need localmount
	use logger
}

start() {
	ebegin "Starting watchdog"
	[ ! -e /dev/watchdog ] && eend 1 "/dev/watchdog not found"
	start-stop-daemon --start --quiet --exec /usr/sbin/watchdog
	eend $?
}

stop() {
	ebegin "Stopping watchdog"
	start-stop-daemon --stop --quiet --exec /usr/sbin/watchdog
	eend $?
}
