Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705914 - net-p2p/deluge-2.0.3-r2: deluge-web init stop Script not working.
Summary: net-p2p/deluge-2.0.3-r2: deluge-web init stop Script not working.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paolo Pedroni
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-01-20 08:17 UTC by Norman Rieß
Modified: 2020-01-27 06:32 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Rieß 2020-01-20 08:17:27 UTC
Stopping the deluge-web Process fails. The Process stays alive.

~ # /etc/init.d/deluge-web start
 * Starting Deluge-Web ...                                                                                                            [ ok ]
~ # /etc/init.d/deluge-web stop
 * Stopping Deluge-Web ...
 * start-stop-daemon: no matching processes found                                                                                     [ ok ]

No further error message is given.
Comment 1 Paolo Pedroni 2020-01-20 16:13:45 UTC
I use systemd on my system and I do not have this problem. Is there any openrc power user willing to help diagnosing this issue?
Comment 2 Norman Rieß 2020-01-24 07:46:40 UTC
The issue is fixed by adding "--do-not-daemonize" to the start statement, equaly to how the deluged script handles this.

So the start statement should look like this:

start-stop-daemon --start --background --pidfile \
        /run/deluge-web.pid  --make-pidfile \
        --exec /usr/bin/deluge-web --user "${DELUGE_WEB_USER%:*}" \
        -e HOME="${DELUGE_WEB_USER_HOME}" -- --do-not-daemonize ${DELUGE_WEB_OPTS}
Comment 3 Larry the Git Cow gentoo-dev 2020-01-27 06:32:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8eeaceea9b91ac8f068cdcb333842d7aebb7c9e6

commit 8eeaceea9b91ac8f068cdcb333842d7aebb7c9e6
Author:     PPed72 <paolo.pedroni@iol.it>
AuthorDate: 2020-01-24 15:04:07 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-01-27 06:32:20 +0000

    net-p2p/deluge: fix deluge-web.init file
    
    Also fixes installation of unwanted files and byte compilation of
    python modules. Remove old.
    
    Closes: https://bugs.gentoo.org/705914
    Signed-off-by: Paolo Pedroni <paolo.pedroni@iol.it>
    Closes: https://github.com/gentoo/gentoo/pull/14425
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 ...luge-2.0.3-r1.ebuild => deluge-2.0.3-r3.ebuild} | 28 ++++++------
 net-p2p/deluge/deluge-9999.ebuild                  | 26 ++++++-----
 net-p2p/deluge/files/deluge-web.init-2             | 53 ++++++++++++++++++++++
 3 files changed, 82 insertions(+), 25 deletions(-)