2021-05-12 21:18:53 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Connect Mullvad VPN on user login
|
2021-05-13 14:07:09 +02:00
|
|
|
After=mullvad-daemon.service network-online.target dbus.socket
|
2024-04-27 07:34:46 +02:00
|
|
|
Requires=mullvad-daemon.service network-online.target dbus.socket
|
2021-05-12 21:18:53 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
2021-05-13 14:51:05 +02:00
|
|
|
# Not necessary as the daemon is already up at this time
|
|
|
|
#ExecStartPre=sleep 60
|
2021-05-12 21:18:53 +02:00
|
|
|
ExecStart=mullvad connect
|
|
|
|
# ExecStop runs after forking leading into immediate disconnect!
|
|
|
|
Restart=on-failure
|
2024-01-06 13:52:03 +01:00
|
|
|
RestartSec=5s
|
2021-05-12 21:18:53 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|