Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59289 - /etc/init.d/gift start fails
Summary: /etc/init.d/gift start fails
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-03 10:03 UTC by Pantelis Panayiotou
Modified: 2004-08-04 08:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pantelis Panayiotou 2004-08-03 10:03:56 UTC
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
Comment 1 Jon Hood (RETIRED) gentoo-dev 2004-08-03 14:44:27 UTC
# 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?
Comment 2 Pantelis Panayiotou 2004-08-04 08:08:50 UTC
Sorry, please ignore this bug.

I thought that your initscript was broken, but it was me who actually broke it by mistake.

Sorry :-)