This is an old revision of the document!
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:
RuntimeWatchdogSec=10 ShutdownWatchdogSec=10min
Install the watchdog service with the following commands:
sudo apt update sudo apt install watchdog
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.