CPU:Hi3536c
命令:watchdog
~ # watchdog BusyBox v1.20.2 (2017-12-06 16:27:02 CST) multi-call binary. Usage: watchdog [-t N[ms]] [-T N[ms]] [-F] DEV Periodically write to watchdog device DEV -T N Reboot after N seconds if not reset (default 60) -t N Reset every N seconds (default 30) -F Run in foreground Use 500ms to specify period in milliseconds
参数说明:
-t: 设置喂狗间隔,默认30秒
-T:设置多少秒未喂狗,重启系统;
-F:前台运行;
使用示例:
watchdog -t 5 -T 10 /dev/watchdog
说明:
上面的示例命令的意思是:
每隔5秒喂一次狗,如果喂狗之后10秒没有再次喂狗,就重启系统。