User Tools

Site Tools


rpi-watchdog

This is an old revision of the document!


Raspberry Pi Watchdog

The Watchdog feature of the Raspberry Pi is both under-rated and under-publicised. As this website explains, Watchdog can be used to automatically restart your Raspberry Pi in the event of a system error that otherwise bricks the device. It takes <5 mins to install and enable Watchdog, and particularly for remote RPis, you could find it saves the day.

Steps to install and run RPi Watchdog:

sudo -i\\
echo 'dtparam=watchdog=on' >> /boot/config.txt\\
reboot\\

Then copy/paste these commands into your terminal, one at a time:

sudo -i\\
yes | apt install watchdog\\
echo 'watchdog-device = /dev/watchdog' >> /etc/watchdog.conf\\
echo 'watchdog-timeout = 15' >> /etc/watchdog.conf\\
echo 'max-load-1 = 24' >> /etc/watchdog.conf\\
systemctl enable watchdog\\
systemctl start watchdog\\
systemctl status watchdog\\

Michael GM5AUG 2024/01/19 19:28

rpi-watchdog.1705692863.txt.gz · Last modified: 2024/01/19 19:34 by gm5aug