[Unit] Description=VPN watchdog After=network.target [Service] Type=oneshot ExecStart=/bin/sh -c 'ping -I tun0 -c 1 9.9.9.9 > /dev/null || systemctl restart openvpn-client@rezine.service' [Install] WantedBy=multi-user.target