diff options
Diffstat (limited to 'package/watchdog/files/watchdog.init')
-rw-r--r-- | package/watchdog/files/watchdog.init | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/package/watchdog/files/watchdog.init b/package/watchdog/files/watchdog.init new file mode 100644 index 000000000..fba89afe5 --- /dev/null +++ b/package/watchdog/files/watchdog.init @@ -0,0 +1,27 @@ +#!/bin/sh +#FWINIT 15 + +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${watchdog:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + /usr/sbin/watchdog + ;; +stop) + killall watchdog + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "usage: $0 { start | stop | restart }" + exit 1 + ;; +esac +exit $? |