Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29437 - Simple init script to start/stop giftd
Summary: Simple init script to start/stop giftd
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Markus Nigbur (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-23 09:28 UTC by Graeme Humphries
Modified: 2003-10-07 04:26 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 Graeme Humphries 2003-09-23 09:28:42 UTC
I've made a simple init script to start and stop giftd. I imagine that a little
more work could be put into it, someone could take a look at the far more robust
setup that the mldonkey package does... but this does the basics for now.

#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /home/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v 1.3
2003/02/14 23:00:14 vapier Exp $
 
depend() {
        need net
}
 
start() {
        ebegin "Starting giFTd"
        start-stop-daemon --start --background --exec /usr/bin/giftd
        result=$?
        eend $result
}
 
stop() {
        ebegin "Stopping giFTd"
        start-stop-daemon --stop --quiet --exec /usr/bin/giftd
        result=$?
        eend $result
}


Reproducible: Always
Steps to Reproduce:
Comment 1 Markus Nigbur (RETIRED) gentoo-dev 2003-10-07 04:26:24 UTC
We'll need to make it more complex, because the initscript you suggested
wouldn't work if we setup gift as user, because the service will be started
as root and can't find the gift configuration data in root's homedir.

I'll check some other voices, concerning a unified way to start p2p applications.
Until then U mark this bug as LATER.