diff --git a/reconnect-vpn.service b/reconnect-vpn.service new file mode 100644 index 0000000..d4ee1fe --- /dev/null +++ b/reconnect-vpn.service @@ -0,0 +1,9 @@ +[Unit] +Description=Reconnect VPN + +[Service] +Type=oneshot +ExecStart=nmcli con up vpn-name + +[Install] +WantedBy=default.target diff --git a/reconnect-vpn.timer b/reconnect-vpn.timer new file mode 100644 index 0000000..f24abb6 --- /dev/null +++ b/reconnect-vpn.timer @@ -0,0 +1,8 @@ +[Unit] +Description=Reconnect VPN every 15 minutes + +[Timer] +OnCalendar=*:0/15 + +[Install] +WantedBy=default.target