shell-things/conf/systemd/user/nordvpn-connect.service
Aminda Suomalainen af016ae82e
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
2024-01-06 12:43:21 +02:00

17 lines
445 B
Desktop File

[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