shell-things/conf/systemd/user/nordvpn-connect.service

17 lines
439 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!
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=default.target