Red Hat ENTERPRISE LINUX 4.5.0 - Guida Utente Pagina 71

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 117
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 70
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
Note
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.
Vedere la pagina 70
1 2 ... 66 67 68 69 70 71 72 73 74 75 76 ... 116 117

Commenti su questo manuale

Nessun commento