An easy way to include a systemd service template in the qbittorrent-nox
package would be adding the option  --enable-systemd to the configure
command.

This can be accomplished by changing debian/rules as per the attached diff.

IMO the package qbittorrent-nox should indeed provide such a launcher
because its main use is running in background controlled through the WebUI.

This service template is moreover harmless for users who don't need it
since it wouldn't be enabled by default.

BZ
--- orig/qbittorrent-4.4.1/debian/rules	2022-02-18 11:25:39.071956171 +0100
+++ new/qbittorrent-4.4.1/debian/rules	2022-02-18 11:02:06.895993681 +0100
@@ -8,7 +8,7 @@
 
 override_dh_auto_configure:
 	dh_auto_configure --builddirectory build-nox -- --disable-gui \
-		--with-boost-libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
+		--with-boost-libdir=/usr/lib/$(DEB_HOST_MULTIARCH) --enable-systemd
 	dh_auto_configure --builddirectory build-gui -- \
 		--with-boost-libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
 

Reply via email to