diff options
author | Jon Hood <squinky86@gentoo.org> | 2004-06-26 20:12:47 +0000 |
---|---|---|
committer | Jon Hood <squinky86@gentoo.org> | 2004-06-26 20:12:47 +0000 |
commit | 2d9f4d22d385c27c5aca9ae922bb69f845080750 (patch) | |
tree | 555d00b550f4fe22504756b33bc552767aae3589 /net-p2p | |
parent | Fixed my bugfix from yesterday. (diff) | |
download | historical-2d9f4d22d385c27c5aca9ae922bb69f845080750.tar.gz historical-2d9f4d22d385c27c5aca9ae922bb69f845080750.tar.bz2 historical-2d9f4d22d385c27c5aca9ae922bb69f845080750.zip |
more configurable init script
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/gift/Manifest | 4 | ||||
-rw-r--r-- | net-p2p/gift/files/gift.confd | 5 | ||||
-rw-r--r-- | net-p2p/gift/files/gift.initd | 4 |
3 files changed, 8 insertions, 5 deletions
diff --git a/net-p2p/gift/Manifest b/net-p2p/gift/Manifest index 9aee38a262e3..797fdc05189c 100644 --- a/net-p2p/gift/Manifest +++ b/net-p2p/gift/Manifest @@ -4,5 +4,5 @@ MD5 3d781ea1f572848a468f6798541375c9 ChangeLog 2159 MD5 875f23093b78af2d864a7a7ba464f126 metadata.xml 223 MD5 64b21cffd79f35db281d077303eb810b files/digest-gift-0.11.6 64 MD5 64b21cffd79f35db281d077303eb810b files/digest-gift-0.11.6-r1 64 -MD5 e4cd15e154f32874f3f1ef99af79634d files/gift.confd 590 -MD5 0829d07566e8aaf30e49add5d361ac93 files/gift.initd 680 +MD5 457258a18cae5b901615e0f23e28152d files/gift.confd 650 +MD5 7f38a4a8cbe322bfd47eff86c550e613 files/gift.initd 676 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 $? } |