net-p2p/deluge: fix deluge-web.service unit file
authorPPed72 <paolo.pedroni@iol.it>
Wed, 16 Oct 2019 14:47:55 +0000 (16:47 +0200)
committerCraig Andrews <candrews@gentoo.org>
Wed, 16 Oct 2019 15:00:39 +0000 (11:00 -0400)
Closes: https://bugs.gentoo.org/697856
Signed-off-by: Paolo Pedroni <paolo.pedroni@iol.it>
Package-Manager: Portage-2.3.76, Repoman-2.3.16
Closes: https://github.com/gentoo/gentoo/pull/13319
Signed-off-by: Craig Andrews <candrews@gentoo.org>
net-p2p/deluge/deluge-2.0.3.ebuild
net-p2p/deluge/files/deluge-web.service-3 [new file with mode: 0644]

index 879207fa8b3736a88b27ecc556f5302b94afa32f..849209d96ba1e6f6c0676253050c513295005eb4 100644 (file)
@@ -99,7 +99,7 @@ python_install_all() {
        if use webinterface; then
                newinitd "${FILESDIR}/deluge-web.init" deluge-web
                newconfd "${FILESDIR}/deluge-web.conf" deluge-web
-               systemd_newunit "${FILESDIR}/deluge-web.service-2" deluge-web.service
+               systemd_newunit "${FILESDIR}/deluge-web.service-3" deluge-web.service
                systemd_install_serviced "${FILESDIR}/deluge-web.service.conf"
        else
                rm -rf "${D}/usr/$(get_libdir)/python2.7/site-packages/deluge/ui/web/" || die
diff --git a/net-p2p/deluge/files/deluge-web.service-3 b/net-p2p/deluge/files/deluge-web.service-3
new file mode 100644 (file)
index 0000000..5e0049e
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Deluge WebUI
+Documentation=man:deluge-web
+After=deluged.service
+
+[Service]
+ExecStart=/usr/bin/deluge-web -d -c ${DELUGED_HOME} ${DELUGED_OPTS}
+
+[Install]
+WantedBy=multi-user.target