====== Raspberry Pi Watchdog ======
The Watchdog feature of the Raspberry Pi is both under-rated and under-publicised. As [[https://diode.io/blog/running-forever-with-the-raspberry-pi-hardware-watchdog|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
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
reboot
To include your WiFi interface in the scope of the watchdog check:
sudo su
echo 'interface = wlan0' >> /etc/watchdog.conf
reboot
--- //[[gm5aug@topple.scot|Michael GM5AUG]] 2024/01/19 19:28//