I just set up a hardware watchdog on YunoHost to monitor my connectivity using the watchdog systemd service. If I can't ping 8.8.8.8 for 30 minutes, it'll trigger a reboot.

I've been having issues where my RPi4 server suddenly lost the internet connection... I disabled EEE, which hopefully fixed that, but having some extra security like this probably won't hurt.

#YunoHost #SelfHosted #Linux #RaspberryPi #SystemD

@bammerlaan it's using a hammer for a fly. check another ip to be sure and check you can access your lan. Check your logs, your ressource with sar. Dont reboot like it's magic, best to investigate and understand. You can reboot everyday if you want but that's for other reason.
Use this workaround for a short time and fix at the source

@Quentin_ctrL Oh, thanks! Well, I did check the logs, and there's nothing really there... As far as I could tell. But some googling did tell me these kinds of issues could stem from the mentioned EEE thing, so that's what I'm trying first.

The watchdog is more a redundancy thing, I figured it couldn't hurt to have something like that running.

Don't misunderstand: this isn't some script that reboots the server every 30 minutes, only if there's no internet connection or some hardware failure.

@Quentin_ctrL If it turns out the issues persist, the next thing I'm trying is setting networkd on debug mode, see if that sheds any light. If you have some more ideas I'm open for suggestions!