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. See the system.conf documentation for more information about these settings:
RuntimeWatchdogSec=10 RebootWatchdogSec=10min
To test if the watchdog service is working, first, obtain root privileges and create a kernel panic with the following:
pi@raspberrypi:~ $ sudo su pi@raspberrypi:~ $ echo 1 > /proc/sys/kernel/sysrq pi@raspberrypi:~ $ echo "c" > /proc/sysrq-trigger
If the watchdog is working, then after about 10 to 20 seconds the ComfilePi should reboot.