summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Hood <squinky86@gentoo.org>2004-06-26 20:12:47 +0000
committerJon Hood <squinky86@gentoo.org>2004-06-26 20:12:47 +0000
commitf0424d760f0b4b050f4237918e82c89e479e0db5 (patch)
treed2c0e544cea4a6c161f05b61dc19d812c501e14b /net-p2p/gift/files
parentFixed my bugfix from yesterday. (Manifest recommit) (diff)
downloadgentoo-2-f0424d760f0b4b050f4237918e82c89e479e0db5.tar.gz
gentoo-2-f0424d760f0b4b050f4237918e82c89e479e0db5.tar.bz2
gentoo-2-f0424d760f0b4b050f4237918e82c89e479e0db5.zip
more configurable init script
Diffstat (limited to 'net-p2p/gift/files')
-rw-r--r--net-p2p/gift/files/gift.confd5
-rw-r--r--net-p2p/gift/files/gift.initd4
2 files changed, 6 insertions, 3 deletions
diff --git a/net-p2p/gift/files/gift.confd b/net-p2p/gift/files/gift.confd
index 2a56de713b9c..2e51ea2138bb 100644
--- a/net-p2p/gift/files/gift.confd
+++ b/net-p2p/gift/files/gift.confd
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/files/gift.confd,v 1.1 2004/06/26 17:53:01 squinky86 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/files/gift.confd,v 1.2 2004/06/26 20:12:47 squinky86 Exp $
# /etc/conf.d/gift
# Config file for gift control script
@@ -12,6 +12,9 @@
# owner of giFTd process (don't change, must be existing)
USER="p2p"
+# where the shared directory is
+SHAREDIR="/usr/share/giFT"
+
# logfile (/dev/null for nowhere)
LOG="/var/log/giftd.log"
diff --git a/net-p2p/gift/files/gift.initd b/net-p2p/gift/files/gift.initd
index 1b4b4ec6d2ad..3a10c38fae7b 100644
--- a/net-p2p/gift/files/gift.initd
+++ b/net-p2p/gift/files/gift.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/files/gift.initd,v 1.1 2004/06/26 17:53:01 squinky86 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/files/gift.initd,v 1.2 2004/06/26 20:12:47 squinky86 Exp $
depend() {
need net
@@ -11,7 +11,7 @@ start() {
ebegin "Starting giFTd"
start-stop-daemon --quiet --start -c ${USER} --make-pidfile \
--pidfile /var/run/giftd.pid --exec /usr/bin/giftd -- \
- --local-dir=/usr/share/giFT &>${LOG} &
+ --local-dir=${SHAREDIR} &>${LOG} &
renice ${NICE} -u ${USER} >/dev/null
eend $?
}