Add Watchdog Service
Add S15watchdog under directory /etc/init.d / with the following contents:
#!/bin/sh
#Start watchdog
case"$1"in
start)
echo "Startingwatchdog..."
watchdog -t 3 /dev/watchdog
;;
stop)
;;
restart|reload)
;;
*)
echo "Usage:$0{start|stop|restart}"
exit 1
esac
exit $?
The service is programmed to feed the dog every three seconds, and the default is 60 seconds without feeding the dog before the system restarts, so the guard dog won’t reset if the system is running normally.
文档更新时间: 2021-03-18 10:50 作者:Aeeditor