From af016ae82eaaa65594d34f806f4440860e49c929 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 6 Jan 2024 12:43:21 +0200 Subject: [PATCH] conf/systemd: add nordvpn-connect user service Considering it already has protonvpn and mullvad, why not, and it may be a more reasonable alternative to service.d override that may enforce a reconnect --- conf/systemd/user/nordvpn-connect.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 conf/systemd/user/nordvpn-connect.service diff --git a/conf/systemd/user/nordvpn-connect.service b/conf/systemd/user/nordvpn-connect.service new file mode 100644 index 00000000..53f8dfdc --- /dev/null +++ b/conf/systemd/user/nordvpn-connect.service @@ -0,0 +1,16 @@ +[Unit] +Description=Connect NordVPN on user login +After=nordvpnd.service network-online.target dbus.socket +Wants=nordvpnd.service network-online.target dbus.socket + +[Service] +Type=forking +# Not necessary as the daemon is already up at this time +#ExecStartPre=sleep 60 +ExecStart=/usr/bin/nordvpn connect p2p +# ExecStop runs after forking leading into immediate disconnect! +TimeOutSec=infinity +Restart=on-failure + +[Install] +WantedBy=default.target