
71
# description: software watchdog
#
# Source function library.
### BEGIN INIT INFO
# Provides: watchdog
# Required-Start:
# Should-Start: ipmi
# Required-stop:
# Default-Start: 2 3 5
# Default-stop:
# Short-Description: watchdog
# Description: software watchdog
### END INIT INFO
prog=/usr/sbin/ResetWDT
case "$1" in
start)
echo -n "Starting watchdog daemon: "
${prog} &
echo
;;
*)
echo "Usage: watchdog {start}"
exit 1
;;
esac
----------------------------------------
* Specify the path of WDT Update program in ‘prog=’
3-4) Copy WDT Update program script .
# install -p -m 755 watchdog /etc/init.d
3-5) Set that WDT Update program is possible to start automatically.
# chkconfig –-add watchdog
# chkconfig watchdog on
When you create the program and script on Windows, It is necessary to change
code for Linux under use.
4) Restart the system.
# reboot
Disable Procedure
Log in to the system as the root user.
1) Set that WDT Update program is possible to stop automatically.
Commenti su questo manuale