watchdog can be tested using the standard watchdog command.

# watchdog -t 10 /dev/watchdog     //The dog is fed every 10 seconds
# watchdog -T 5  /dev/watchdog     //If the dog is not fed for more than 5 seconds, the system will restart

The following test did not feed the dog within the specified time. System restart function:

# watchdog -t 10 -T 5 /dev/watchdog  //System restarts after 5S

In the following tests, dogs were fed within the specified time and the system worked normally:

# watchdog -t 10 -T 60 /dev/watchdog
文档更新时间: 2021-03-18 10:49   作者:Aeeditor