systemd/user: introduce mullvad-connect.service

This commit is contained in:
Aminda Suomalainen 2021-05-12 22:18:53 +03:00
parent 9f40319c85
commit c8ee834b23
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
3 changed files with 19 additions and 1 deletions

View File

@ -1,6 +1,7 @@
[Unit]
Description=IPFS daemon
After=network.target
After=network.target mullvad-connect.service
Wants=mullvad-connect.service
# IMPORTANT! If you are running on a VPS/dedicated/similar
# `ipfs init --profile=server` or immediately after setting it up

View File

@ -0,0 +1,15 @@
[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

View File

@ -1,5 +1,7 @@
[Unit]
Description=A Headless Bittorrent client using rb_libtorrent
After=mullvad-connect.service
Wants=mullvad-connect.service
[Service]
Type=simple