From 7748d64ad7fedfcc349c04e544e493a30df9fcf9 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 6 Jan 2024 12:34:44 +0200 Subject: [PATCH] systemd: deduplicate qbittorrent, add qbittorrent-nox@.service overrides --- conf/systemd/user/qbittorrent-nox.service | 12 ------------ .../system/qbittorrent-nox@.service.d/nordvpn.conf | 1 + .../qbittorrent-nox@.service.d/webui-port.conf | 3 +++ etc/systemd/system/service.d/nordvpn.conf | 2 +- 4 files changed, 5 insertions(+), 13 deletions(-) delete mode 100644 conf/systemd/user/qbittorrent-nox.service create mode 120000 etc/systemd/system/qbittorrent-nox@.service.d/nordvpn.conf create mode 100644 etc/systemd/system/qbittorrent-nox@.service.d/webui-port.conf diff --git a/conf/systemd/user/qbittorrent-nox.service b/conf/systemd/user/qbittorrent-nox.service deleted file mode 100644 index 789865d9..00000000 --- a/conf/systemd/user/qbittorrent-nox.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=A Headless Bittorrent client using rb_libtorrent - -[Service] -Type=simple -ExecStart=/usr/bin/qbittorrent-nox --webui-port=8081 -ExecReload=/bin/kill -HUP $MAINPID -Restart=always -RestartSec=5 - -[Install] -WantedBy=default.target diff --git a/etc/systemd/system/qbittorrent-nox@.service.d/nordvpn.conf b/etc/systemd/system/qbittorrent-nox@.service.d/nordvpn.conf new file mode 120000 index 00000000..3a08627f --- /dev/null +++ b/etc/systemd/system/qbittorrent-nox@.service.d/nordvpn.conf @@ -0,0 +1 @@ +../service.d/nordvpn.conf \ No newline at end of file diff --git a/etc/systemd/system/qbittorrent-nox@.service.d/webui-port.conf b/etc/systemd/system/qbittorrent-nox@.service.d/webui-port.conf new file mode 100644 index 00000000..44cde7ea --- /dev/null +++ b/etc/systemd/system/qbittorrent-nox@.service.d/webui-port.conf @@ -0,0 +1,3 @@ +[Service] +ExecStart= +ExecStart=/usr/bin/qbittorrent-nox --webui-port=8081 diff --git a/etc/systemd/system/service.d/nordvpn.conf b/etc/systemd/system/service.d/nordvpn.conf index 0b976f9c..135efb51 100644 --- a/etc/systemd/system/service.d/nordvpn.conf +++ b/etc/systemd/system/service.d/nordvpn.conf @@ -3,4 +3,4 @@ Wants=nordvpnd.service After=nordvpnd.service [Service] -ExecStartPre=/usr/bin/nordvpn connect +ExecStartPre=/usr/bin/nordvpn connect p2p