0

I need to enable Watchdog functionality on my RPi.

I've followed this guide: https://medium.com/@arslion/enabling-watchdog-on-raspberry-pi-b7e574dcba6b

No errors were reported, I installed everything was needed.

However I don't need to reset when CPU usage is high, I only need to reset when the system really freezes.

Therefore, I've only

watchdog-device = /dev/watchdog
watchdog-timeout=15
realtime                = yes #was in by default
priority                = 1 #was in by default

In /etc/watchdog.conf.

When I check the service, it seems running:

# systemctl status watchdog
● watchdog.service - watchdog daemon
   Loaded: loaded (/lib/systemd/system/watchdog.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2021-04-05 19:17:24 CEST; 1h 28min ago

watchdog[674]: error retry time-out = 60 seconds watchdog[674]: repair attempts = 1 watchdog[674]: alive=/dev/watchdog heartbeat=[none] to=root no_act=no force=no watchdog[674]: watchdog now set to 15 seconds watchdog[674]: hardware watchdog identity: Broadcom BCM2835 Watchdog timer

But as I don't have huge CPU usage trigger enabled, how can I make sure it's really active? Is it enough to have watchdog linux service to be enabled and active?

I tried to do echo 1 > /dev/watchdog, nothing printed out, but after 15 seconds, RPi rebooted.

Do I have to echo constantly? Or the service is doing exactly this job for me?

Daniel
  • 291
  • 1
  • 2
  • 11

0 Answers0