#!/sbin/runscript # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox-watchdog/files/busybox-watchdog.initd,v 1.2 2012/08/29 13:27:03 sbriesen Exp $ depend() { provide watchdog } start() { export SSD_NICELEVEL ebegin "Starting busybox-watchdog" start-stop-daemon --start --quiet --name watchdog --exec /bin/busybox -- ${WATCHDOG_OPTS} eend ${?} "Failed to start watchdog" } stop() { ebegin "Stopping busybox-watchdog" start-stop-daemon --stop --retry 15 --quiet --name watchdog --exec /bin/busybox eend ${?} "Failed to stop watchdog" }