Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 210525 Details for
Bug 293513
net-p2p/deluge-9999 (rc3+) new binary for webui - need to alter init script
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch which should be backwards compatible
0001-net-p2p-deluge-9999-deluge-torrent-client-server-upd.patch (text/plain), 2.50 KB, created by
Pritesh
on 2009-11-17 16:40:58 UTC
(
hide
)
Description:
Proposed patch which should be backwards compatible
Filename:
MIME Type:
Creator:
Pritesh
Created:
2009-11-17 16:40:58 UTC
Size:
2.50 KB
patch
obsolete
>From b90e5f730de3ed39995afa789e61503c1e7aa737 Mon Sep 17 00:00:00 2001 >From: Pritesh Mehta <pritesh@phatforge.com> >Date: Tue, 17 Nov 2009 16:16:32 +0000 >Subject: [PATCH] net-p2p/deluge-9999 deluge torrent client/server - update of deluge.conf deluge.init for newer ui binaries > > Alter the config and init files to support the newer ui specific binaries (deluge-web|deluge-console|deluge-gtk) > Leaving the DELUGEUI_TYPE field blank, and maintaining the original DELUGEUI_OPT variable, should retain normal functionality for older versions >--- > net-p2p/deluge/files/deluged.conf | 2 ++ > net-p2p/deluge/files/deluged.init | 26 ++++++++++++++++---------- > 2 files changed, 18 insertions(+), 10 deletions(-) > >diff --git a/net-p2p/deluge/files/deluged.conf b/net-p2p/deluge/files/deluged.conf >index 1d4714c..0ae2392 100644 >--- a/net-p2p/deluge/files/deluged.conf >+++ b/net-p2p/deluge/files/deluged.conf >@@ -3,5 +3,7 @@ > # You may specify a group too, after a colon > DELUGED_USER="" > DELUGEUI_START="false" >+# Deluge UI type. One of [web|console|gtk]. Leave this field blank if you are not using the latest version >+DELUGEUI_TYPE="" > DELUGEUI_OPTS="-u web" > >diff --git a/net-p2p/deluge/files/deluged.init b/net-p2p/deluge/files/deluged.init >index f9b2a30..0db766b 100644 >--- a/net-p2p/deluge/files/deluged.init >+++ b/net-p2p/deluge/files/deluged.init >@@ -46,12 +46,15 @@ start() { > > > if [[ "${DELUGEUI_START}" == "true" ]] ; then >- ebegin "Starting Deluge" >- start-stop-daemon --start --background --pidfile \ >- /var/run/deluge.pid --make-pidfile \ >- --exec /usr/bin/deluge -c "${DELUGED_USER}" \ >- -e HOME="${DELUGED_USER_HOME}" -- ${DELUGEUI_OPTS} >- eend $? >+ DELUGEUI_BINARY="$(which deluge-${DELUGEUI_TYPE})" >+ if [[ -x ${DELUGEUI_BINARY} ]] ; then >+ ebegin "Starting Deluge UI" >+ start-stop-daemon --start --background --pidfile \ >+ /var/run/deluge.pid --make-pidfile \ >+ --exec ${DELUGEUI_BINARY} -c "${DELUGED_USER}" \ >+ -e HOME="${DELUGED_USER_HOME}" -- ${DELUGEUI_OPTS} >+ eend $? >+ fi > fi > } > >@@ -63,9 +66,12 @@ stop() { > > > if [[ "${DELUGEUI_START}" == "true" ]] ; then >- ebegin "Stopping Deluge" >- start-stop-daemon --stop --user "${DELUGED_USER}" \ >- --name deluge --pidfile /var/run/deluge.pid >- eend $? >+ DELUGEUI_BINARY="$(which deluge-${DELUGEUI_TYPE})" >+ if [[ -x ${DELUGEUI_BINARY} ]] ; then >+ ebegin "Stopping Deluge UI" >+ start-stop-daemon --stop --user "${DELUGED_USER}" \ >+ --name ${DELUGEUI_BINARY} --pidfile /var/run/deluge.pid >+ eend $? >+ fi > fi > } >-- >1.6.5.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 293513
: 210525