summaryrefslogtreecommitdiff
path: root/system/watchdog/rc.watchdog
diff options
context:
space:
mode:
authordsomero <xgizzmo@gmail.com>2010-05-21 23:46:55 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-24 16:09:20 -0500
commit3974b80745717853cadb1cc680573d898d056a73 (patch)
treea501201bb9cd6214e3a7fc0379bb0d3f2471770c /system/watchdog/rc.watchdog
parent3954eb29a8536a79496e481233d1786ff0f0bd49 (diff)
downloadslackbuilds-3974b80745717853cadb1cc680573d898d056a73.tar.gz
system/watchdog: Removed (download link broken)
Diffstat (limited to 'system/watchdog/rc.watchdog')
-rw-r--r--system/watchdog/rc.watchdog43
1 files changed, 0 insertions, 43 deletions
diff --git a/system/watchdog/rc.watchdog b/system/watchdog/rc.watchdog
deleted file mode 100644
index 7e07dff61f..0000000000
--- a/system/watchdog/rc.watchdog
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-#
-# /etc/rc.d/rc.watchdog
-#
-# Start/stop/restart the watchdog timer service.
-
-watchdog_start() {
- if [ ! -e /dev/watchdog ]; then
- echo "$0: No /dev/watchdog device node seems to exist on this system."
- echo "$0: A kernel module probably needs to be loaded; please see:"
- echo "$0: /usr/src/linux/Documentation/watchdog/watchdog-api.txt"
- exit 0
- fi
- if [ -x /usr/sbin/watchdog -a -r /etc/watchdog.conf ]; then
- echo "Starting the watchdog timer service: /usr/sbin/watchdog"
- /usr/sbin/watchdog
- fi
-}
-
-watchdog_stop() {
- killall watchdog
-}
-
-watchdog_restart() {
- watchdog_stop
- sleep 10 # can take a while to die
- watchdog_start
-}
-
-case "$1" in
-'start')
- watchdog_start
- ;;
-'stop')
- watchdog_stop
- ;;
-'restart')
- watchdog_restart
- ;;
-*)
- echo $"Usage: $0 {start|stop|restart}"
-esac
-