mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +01:00
systemd/user: introduce mullvad-connect.service
This commit is contained in:
parent
9f40319c85
commit
c8ee834b23
@ -1,6 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=IPFS daemon
|
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
|
# IMPORTANT! If you are running on a VPS/dedicated/similar
|
||||||
# `ipfs init --profile=server` or immediately after setting it up
|
# `ipfs init --profile=server` or immediately after setting it up
|
||||||
|
15
conf/systemd/user/mullvad-connect.service
Normal file
15
conf/systemd/user/mullvad-connect.service
Normal 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
|
@ -1,5 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=A Headless Bittorrent client using rb_libtorrent
|
Description=A Headless Bittorrent client using rb_libtorrent
|
||||||
|
After=mullvad-connect.service
|
||||||
|
Wants=mullvad-connect.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
Loading…
Reference in New Issue
Block a user