mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-28 05:42:31 +01:00
16 lines
344 B
SYSTEMD
16 lines
344 B
SYSTEMD
|
[Unit]
|
||
|
Description=Connect Mullvad VPN on user login
|
||
|
After=network-online.target dbus.socket
|
||
|
Wants=network-online.target dbus.socket
|
||
|
|
||
|
[Service]
|
||
|
Type=forking
|
||
|
ExecStartPre=sleep 60
|
||
|
ExecStart=mullvad connect
|
||
|
# ExecStop runs after forking leading into immediate disconnect!
|
||
|
TimeOutSec=infinity
|
||
|
Restart=on-failure
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=default.target
|