diff options
Diffstat (limited to 'init.d/watchdog')
-rwxr-xr-x | init.d/watchdog | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/init.d/watchdog b/init.d/watchdog new file mode 100755 index 0000000..b4b3ae7 --- /dev/null +++ b/init.d/watchdog @@ -0,0 +1,14 @@ +#!/sbin/runscript + +start() { + [ "$WATCHDOG_DEV" ] || die "WATCHDOG_DEV is not set" + ebegin "Starting $SVCNAME" + $SVCNAME $WATCHDOG_OPTS $WATCHDOG_DEV + eend $? +} + +stop () { + ebegin "Stopping $SVCNAME" + killall $SVCNAME + eend $? +} |