]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/packages/watchdog
update Tor to 0.3.5.8
[people/pmueller/ipfire-2.x.git] / src / initscripts / packages / watchdog
1 #!/bin/sh
2 ########################################################################
3 # Begin $rc_base/init.d/watchdog
4 #
5 # Description : watchdog daemon initscript
6 #
7 ########################################################################
8
9 . /etc/sysconfig/rc
10 . ${rc_functions}
11
12 if [ -e "/etc/sysconfig/watchdog" ]; then
13 . /etc/sysconfig/watchdog
14 fi
15
16 case "${1}" in
17 start)
18 if [ -n "${watchdog_module}" ]; then
19 modprobe -q "${watchdog_module}" 2>/dev/null
20 fi
21
22 boot_mesg "Starting watchdog daemon..."
23 loadproc /usr/sbin/watchdog ${watchdog_options}
24 ;;
25
26 stop)
27 boot_mesg "Stopping watchdog daemon..."
28 killproc /usr/sbin/watchdog
29 ;;
30
31 restart)
32 ${0} stop
33 sleep 1
34 ${0} start
35 ;;
36
37 status)
38 statusproc /usr/sbin/watchdog
39 ;;
40
41 *)
42 echo "Usage: ${0} {start|stop|restart|status}"
43 exit 1
44 ;;
45 esac
46
47 # End $rc_base/init.d/watchdog