mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19:22 +01:00
systemd/user: add properish protonvpn-user.service (& fix ipfs&qbt)
This commit is contained in:
parent
5903664cb7
commit
3bde08d520
@ -1,6 +1,7 @@
|
||||
[Unit]
|
||||
Description=IPFS daemon
|
||||
After=network.target
|
||||
After=network.target protonvpn-user.service
|
||||
Wants=protonvpn-user.service
|
||||
|
||||
# IMPORTANT! If you are running on a VPS/dedicated/similar
|
||||
# `ipfs init --profile=server` or immediately after setting it up
|
||||
@ -12,7 +13,6 @@ After=network.target
|
||||
# providers triggers netscan detection, risking account termination"
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/usr/bin/sudo -n /usr/bin/protonvpn connect --p2p
|
||||
ExecStart=/home/mikaela/go/bin/ipfs daemon --routing=dht --enable-gc --enable-namesys-pubsub
|
||||
|
||||
# My attempts at explaining flags above + --mount for fuse
|
||||
|
14
conf/systemd/user/protonvpn-user.service
Normal file
14
conf/systemd/user/protonvpn-user.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=ProtonVPN connection
|
||||
After=network-online.target dbus.socket
|
||||
Wants=network-online.target dbus.socket
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
# ProtonVPN CLI v3.3.1 (protonvpn-nm-lib v0.4.2; proton-client v0.3.0)
|
||||
ExecStartPre=sleep 60
|
||||
ExecStart=protonvpn-cli connect --p2p
|
||||
# ExecStop runs after forking leading into immediate disconnect!
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
@ -1,9 +1,10 @@
|
||||
[Unit]
|
||||
Description=A Headless Bittorrent client using rb_libtorrent
|
||||
After=protonvpn-user.service
|
||||
Wants=protonvpn-user.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=/usr/bin/sudo -n /usr/bin/protonvpn connect --p2p
|
||||
ExecStart=/usr/bin/qbittorrent-nox --webui-port=8081
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user