mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 03:09:22 +01:00
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:
parent
e9bd5d1dfc
commit
af016ae82e
16
conf/systemd/user/nordvpn-connect.service
Normal file
16
conf/systemd/user/nordvpn-connect.service
Normal 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
|
Loading…
Reference in New Issue
Block a user