User Tools

Site Tools



Enable the Internal Watchdog Timer

The ComfilePi's SoC has an internal watchdog timer that can be used to automatically reboot the system should it ever become unresponsive.

First, verify that the /dev/watchdog device exists:

pi@raspberrypi:~ $ ls -al /dev/watchdog*
crw------- 1 root root  10, 130 Feb 14  2019 /dev/watchdog
crw------- 1 root root 251,   0 Feb 14  2019 /dev/watchdog0

Uncomment the following lines in the file /etc/systemd/system.conf:


Check if the watchdog service is running with the following command:

pi@raspberrypi:~ $ systemctl | grep watchdog
watchdog.service         loaded active running   watchdog daemon 

If the watchdog.service is not running, start it with the following command:

sudo systemctl start watchdog.service

To test if the watchdog service is working, first, obtain root privileges and then initiate a forkbomb:

pi@raspberrypi:~ $ sudo su
root@raspberrypi:/home/pi# :(){ :|:& };:

If the watchdog is working, then after about 10 to 20 seconds the ComfilePi should reboot.

ComfilePi - Industrial Raspberry Pi Panel PC

comfilepi/enable_the_internal_watchdog_timer.txt · Last modified: 2022/07/08 06:38 by COMFILE Technology