summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Hood <squinky86@gentoo.org>2004-08-04 21:01:28 +0000
committerJon Hood <squinky86@gentoo.org>2004-08-04 21:01:28 +0000
commit3ed5ccaba61d6aab1c798dbd89617dc72322ea47 (patch)
treeab0dab890e8331e5fec86de7d206172c3db2713e /net-p2p/gift/files
parentcleanup (diff)
downloadgentoo-2-3ed5ccaba61d6aab1c798dbd89617dc72322ea47.tar.gz
gentoo-2-3ed5ccaba61d6aab1c798dbd89617dc72322ea47.tar.bz2
gentoo-2-3ed5ccaba61d6aab1c798dbd89617dc72322ea47.zip
more prettiful init script
Diffstat (limited to 'net-p2p/gift/files')
-rw-r--r--net-p2p/gift/files/gift.initd7
1 files changed, 5 insertions, 2 deletions
diff --git a/net-p2p/gift/files/gift.initd b/net-p2p/gift/files/gift.initd
index bc9fa85403bf..bc6f69dac883 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 Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/files/gift.initd,v 1.3 2004/07/15 00:20:21 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/files/gift.initd,v 1.4 2004/08/04 21:01:28 squinky86 Exp $
depend() {
need net
@@ -12,7 +12,10 @@ start() {
start-stop-daemon --quiet --start -c ${USER} --make-pidfile \
--pidfile /var/run/giftd.pid --exec /usr/bin/giftd -- \
--local-dir=${SHAREDIR} &>${LOG} &
- renice ${NICE} -u ${USER} >/dev/null
+ for i in `pgrep -u ${USER} giftd`
+ do
+ renice -p $i ${NICE}
+ done
eend $?
}