Page 1 of 1

Watchdog

Posted: Tue Jan 30, 2018 6:28 pm
by Peter
Hi, I use a Nanopi Duo with heatsink as Flightradar 24 receiver at the top ground. It works fine. But sometimes the Duo is not working. I can only interrupt the power supply. Then the temp is very high:
temp.png
temp.png (44.84 KiB) Viewed 1939 times

NanoPi Monitor is also not working - no readings. Has the Nanopi Duo a watchdog? So it can reboot, if it is not working anymore. If yes, how can I activate the watchdog?

Peter

Re: Watchdog

Posted: Wed Jan 31, 2018 5:09 pm
by Peter
I found: https://forum.armbian.com/topic/2898-ho ... dog-in-h3/

Install:

Code: Select all

sudo apt-get install watchdog

Test watchdog:
Activate, after 16 sec the nanopi is restarted:

Code: Select all

 sudo sh -c 'echo 1 > /dev/watchdog'

Deactivate:

Code: Select all

sudo sh -c 'echo V > /dev/watchdog'

Start the watchdog service:

Code: Select all

sudo systemctl start  watchdog

But enable with

Code: Select all

sudo systemctl enable watchdog

start it not after reboot.
see https://unix.stackexchange.com/question ... rt-at-boot and add in /lib/systemd/system/watchdog.service

Code: Select all

[Install]
WantedBy=multi-user.target