From 93df53ab69263c2c4be9574ad1ff77b1c7a4df8349cad33ff8b818106b25d6dc Mon Sep 17 00:00:00 2001 From: Late Night Defender Date: Mon, 9 Dec 2024 12:14:21 +0700 Subject: [PATCH] automatically restart service after vpn reconnects --- {udev => systemd}/reconnect-vpn.service | 1 + {udev => systemd}/reconnect-vpn.timer | 0 2 files changed, 1 insertion(+) rename {udev => systemd}/reconnect-vpn.service (71%) rename {udev => systemd}/reconnect-vpn.timer (100%) diff --git a/udev/reconnect-vpn.service b/systemd/reconnect-vpn.service similarity index 71% rename from udev/reconnect-vpn.service rename to systemd/reconnect-vpn.service index d4ee1fe..199bc43 100644 --- a/udev/reconnect-vpn.service +++ b/systemd/reconnect-vpn.service @@ -4,6 +4,7 @@ Description=Reconnect VPN [Service] Type=oneshot ExecStart=nmcli con up vpn-name +ExecStartPost=systemctl --user restart my-service [Install] WantedBy=default.target diff --git a/udev/reconnect-vpn.timer b/systemd/reconnect-vpn.timer similarity index 100% rename from udev/reconnect-vpn.timer rename to systemd/reconnect-vpn.timer