aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox-initscripts/watchdog.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/busybox-initscripts/watchdog.initd')
-rw-r--r--main/busybox-initscripts/watchdog.initd18
1 files changed, 5 insertions, 13 deletions
diff --git a/main/busybox-initscripts/watchdog.initd b/main/busybox-initscripts/watchdog.initd
index 7363bb7553..986a113b83 100644
--- a/main/busybox-initscripts/watchdog.initd
+++ b/main/busybox-initscripts/watchdog.initd
@@ -1,25 +1,17 @@
#!/sbin/runscript
+name="busybox watchdog"
+command="/sbin/watchdog"
+command_args="${WATCHDOG_OPTS} ${WATCHDOG_DEV}"
+pidfile="/var/run/watchdog.pid"
depend() {
need dev
after hwdrivers
}
-start() {
+start_pre() {
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 $?
}
-