diff --git a/etc/systemd/user/nordvpn-off.service b/etc/systemd/user/nordvpn-off.service new file mode 100644 index 00000000..d07cbb1e --- /dev/null +++ b/etc/systemd/user/nordvpn-off.service @@ -0,0 +1,6 @@ +[Unit] +Description=Disconnect and disable NordVPN on user systemd start + +[Service] +Type=oneshot +ExecStart=/usr/local/bin/nordvpn-off diff --git a/etc/systemd/user/nordvpn-off.timer b/etc/systemd/user/nordvpn-off.timer new file mode 100644 index 00000000..49178a29 --- /dev/null +++ b/etc/systemd/user/nordvpn-off.timer @@ -0,0 +1,11 @@ +[Unit] +Description=Turn off NordVPN on login + +[Timer] +OnUnitActiveSec=1 +OnBootSec=2 +RandomizedDelaySec=3 +Persistent=true + +[Install] +WantedBy=timers.target