After installing net-p2p/gift, the gift initscript fails to start. Reproducible: Always Steps to Reproduce: 1. emerge gift 2. /etc/init.d/gift start Actual Results: Daemon /usr/bin/giftd failed to start. Expected Results: Start ;-) To make the daemon start, I had to do the following: 1. Install the gift-openft plugin for gift (gift not being very useful without it). # emerge gift-openft 2. Run the gift-setup command as user p2p. # su p2p # gift-setup 3. Patch the /etc/init.d/gift script to read as follows. The original gift initscript was broken in my system. BEGIN #!/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 $ depend() { need net } start() { ebegin "Starting giFTd" start-stop-daemon --quiet --start -c ${USER} --make-pidfile \ --pidfile /var/run/giftd.pid --exec /usr/bin/giftd \ -- --home-dir=/home/${USER} &>${LOG} & renice ${NICE} -u ${USER} >/dev/null eend $? } stop() { ebegin "Stopping giFTd - please wait" start-stop-daemon --stop --quiet --pidfile /var/run/giftd.pid eend $? } restart() { svc_stop sleep 10 svc_start } END My system configuration: start-stop-daemon 1.10.20 gift 0.11.6-r1 openft 0.2.1.3
# ebuild /usr/portage/net-p2p/gift/gift-0.11.6-r1.ebuild postinst ... * Also, if you will be using the giFT init script, you * will need to create /usr/share/giFT/giftd.conf * This method is only recommended for users with a * central giFT server. ... It is impossible to know what setup you will be using so the user is required to custom-configure the gift daemon if they intend to start a central gift server. The script also assumes that /usr/share/giFT is going to be the directory you use for such configuration. Is there a benefit of using /home/p2p for this, because we can change it should there be enough reason to?
Sorry, please ignore this bug. I thought that your initscript was broken, but it was me who actually broke it by mistake. Sorry :-)