Wireguard Monitor
Shell script and systemd service that will monitor if wireguard link is active. In case it fails wireguard connection will be restarted.
Installation
Assumption is that wireguard is already installed on the system, this script does not handle installation of wireguard itself. This script assumes that wireguard interface name is home. Script assumes that IP address for gateway is set to 192.168.5.1.
For more details look at the wireguard-monitor script.
To install simply run:
sudo ./install.sh