From 3fe927c19c9a49ee5fec05135d9bcf726d05c2cc Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 10 Jun 2009 20:05:21 +0000 Subject: core/busybox-initscripts: new aport We move many scripts from alpine-baselayout to this package. --- core/busybox-initscripts/watchdog.initd | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 core/busybox-initscripts/watchdog.initd (limited to 'core/busybox-initscripts/watchdog.initd') diff --git a/core/busybox-initscripts/watchdog.initd b/core/busybox-initscripts/watchdog.initd new file mode 100644 index 0000000000..7363bb7553 --- /dev/null +++ b/core/busybox-initscripts/watchdog.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript + +depend() { + need dev + after hwdrivers +} + +start() { + if ! [ -n "$WATCHDOG_DEV" ]; then + eerror "WATCHDOG_DEV is not set" + return 1 + fi + + ebegin "Starting busybox watchdog" + start-stop-daemon --start --exec /sbin/watchdog \ + -- $WATCHDOG_OPTS $WATCHDOG_DEV + eend $? +} + +stop () { + ebegin "Stopping busybox watchdog" + start-stop-daemon --stop --exec /sbin/watchdog + eend $? +} + -- cgit v1.2.3