summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/deluge/files/deluged.init')
-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 \