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
This commit is contained in:
Aminda Suomalainen 2024-01-06 12:43:21 +02:00
parent e9bd5d1dfc
commit af016ae82e
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -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