Setting up a custom systemd service that keeps a script / binary running at all times is simple, yet very powerful, so I wanted to make a simple post about it. Our goal in this post: create a systemd service that runs our custom script or binary make the service start on system boot and check status Systemd will automatically restart our binary if it dies, which very convenient and easier than us having to write this logic ourselves :)
So you have your own Linux router, and two separate internet connections, and you’d like to have your router switch to the failover one when the main one is acting up. Good news, you’re at the right place :) In this guide we’ll go through what needs to be done to have your box automatically switch to the failover interface and back. We’ll also talk about how you could send updates / notifications to your system of choice.