Raspberry Pi: Enabling Watchdog on Raspbian Jessie

If you use a Raspberry Pi, one feature you may not be aware of is that it has a hardware watchdog.  When enabled and properly configured, if the system freezes up, the hardware watchdog will reset the system.  That’s pretty convenient if you’re putting a Raspberry Pi somewhere remote, like a tower site.  Here are instructions for enabling the watchdog on a Raspberry Pi 2 running Raspbian Jessie.

Install the watchdog package:

 

Load the module manually:

Then, add a config to automatically load the module:

We’ll also need to manually edit the systemd unit at /lib/systemd/system/watchdog.service and add a line to the [Install] section:

Then enable the service:

Finally, start the service:

You can set various options for the watchdog in /etc/watchdog.conf – see the man page for that file.

Raspberry Pi: Enabling Watchdog on Raspbian Jessie
Rate this post