summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2009-02-17 15:32:17 +0000
committerRaúl Porcel <armin76@gentoo.org>2009-02-17 15:32:17 +0000
commita29d1823b7ba9b730eba203f6f631de2c873dd90 (patch)
treee106fcc6caa6dc8e20a9237dc381b2e828bf5ed0 /net-p2p/deluge/files
parentDrop KDE 4.1.4 (diff)
downloadhistorical-a29d1823b7ba9b730eba203f6f631de2c873dd90.tar.gz
historical-a29d1823b7ba9b730eba203f6f631de2c873dd90.tar.bz2
historical-a29d1823b7ba9b730eba203f6f631de2c873dd90.zip
add DELUGED_HOME support in config, wrt bug #259278, thanks to Maks Polunin <ph0enix at ngs dot ru>
Package-Manager: portage-2.1.6.4/cvs/Linux 2.6.27-gentoo-r8 ia64
Diffstat (limited to 'net-p2p/deluge/files')
-rw-r--r--net-p2p/deluge/files/deluged.init8
1 files changed, 6 insertions, 2 deletions
diff --git a/net-p2p/deluge/files/deluged.init b/net-p2p/deluge/files/deluged.init
index 85984257ae05..f9b2a306a405 100644
--- a/net-p2p/deluge/files/deluged.init
+++ b/net-p2p/deluge/files/deluged.init
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/deluge/files/deluged.init,v 1.4 2009/01/15 09:43:15 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/deluge/files/deluged.init,v 1.5 2009/02/17 15:32:17 armin76 Exp $
depend() {
need net
@@ -33,7 +33,11 @@ checkconfig() {
start() {
checkconfig || return $?
- DELUGED_USER_HOME=`getent passwd | grep ^$( echo "${DELUGED_USER}" | cut -d ':' -f 1 ): | cut -d ':' -f 6`
+ if [[ "${DELUGED_HOME}" == "" ]] ; then
+ DELUGED_USER_HOME=`getent passwd | grep ^$( echo "${DELUGED_USER}" | cut -d ':' -f 1 ): | cut -d ':' -f 6`
+ else
+ DELUGED_USER_HOME="${DELUGED_HOME}"
+ fi
ebegin "Starting Deluged"
start-stop-daemon --start --user "${DELUGED_USER}" \
--name deluged --pidfile /var/run/deluged.pid --background --make-pidfile \