diff options
Diffstat (limited to 'sys-apps/busybox/files/busybox-watchdog.initd')
-rw-r--r-- | sys-apps/busybox/files/busybox-watchdog.initd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys-apps/busybox/files/busybox-watchdog.initd b/sys-apps/busybox/files/busybox-watchdog.initd new file mode 100644 index 0000000..a9a681d --- /dev/null +++ b/sys-apps/busybox/files/busybox-watchdog.initd @@ -0,0 +1,21 @@ +#!/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 --exec /bin/busybox watchdog -- ${WATCHDOG_OPTS} + eend ${?} "Failed to start watchdog" +} + +stop() { + ebegin "Stopping busybox-watchdog" + start-stop-daemon --stop --retry 15 --quiet --exec /bin/busybox watchdog + eend ${?} "Failed to stop watchdog" +} |