]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/watchdog
6 PATH
=/bin
:/usr
/bin
:/sbin
:/usr
/sbin
8 test -x /usr
/sbin
/watchdog ||
exit 0
10 # For configuration of the init script use the file
11 # /etc/sysconfig/watchdog, do not edit this init script.
13 # Set run_watchdog to 1 to start watchdog or 0 to disable it.
16 # Specify additional watchdog options here (see manpage).
19 # Specify module to load
20 watchdog_module
="none"
22 [ -e /etc
/sysconfig
/watchdog
] && .
/etc
/sysconfig
/watchdog
24 DAEMON
=/usr
/sbin
/watchdog
25 WD_DAEMON
=/usr
/sbin
/wd_keepalive
29 boot_mesg
"Starting watchdog ..."
30 if [ $run_watchdog = 1 ]
32 # do we have to load a module?
33 [ ${watchdog_module:-none} != "none" ] && /sbin
/modprobe
$watchdog_module
35 loadproc
$DAEMON $watchdog_options
40 boot_mesg
"Stopping watchdog ..."
55 echo "Usage: ${0} {start|stop|restart|status}"