summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2005-09-09 04:51:11 +0000
committerSteve Arnold <nerdboy@gentoo.org>2005-09-09 04:51:11 +0000
commitc1193d5719ec5004685f9da57beb4548c158e594 (patch)
treea556269703c05b3862ccb5f86ac4aebc013310b1 /media-sound/edna/files/edna.gentoo
parentAdded debug option. (diff)
downloadhistorical-c1193d5719ec5004685f9da57beb4548c158e594.tar.gz
historical-c1193d5719ec5004685f9da57beb4548c158e594.tar.bz2
historical-c1193d5719ec5004685f9da57beb4548c158e594.zip
fixed some new baselayout and python issues; init script and pep0263 patch
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'media-sound/edna/files/edna.gentoo')
-rw-r--r--media-sound/edna/files/edna.gentoo20
1 files changed, 12 insertions, 8 deletions
diff --git a/media-sound/edna/files/edna.gentoo b/media-sound/edna/files/edna.gentoo
index 63fa426a4b30..1d96de7c56db 100644
--- a/media-sound/edna/files/edna.gentoo
+++ b/media-sound/edna/files/edna.gentoo
@@ -13,18 +13,22 @@ EDNACONF=/etc/edna/edna.conf
PIDFILE=/var/run/edna.pid
depend() {
- need local
+ use net
+ need local
}
start() {
- ebegin "Starting ednad mp3 server"
- start-stop-daemon -m -b --start --quiet --pidfile $PIDFILE \
- --exec $EDNA -- $EDNACONF
- eend $?
+ ebegin "Starting edna mp3 server"
+ start-stop-daemon --quiet --pidfile $PIDFILE
+ $EDNA --daemon $EDNACONF
+ eend $? "Failed to start edna"
}
stop() {
- ebegin "Stopping ednad"
- start-stop-daemon -o --quiet --stop --pidfile $PIDFILE
- eend $?
+ ebegin "Stopping edna mp3 server"
+ start-stop-daemon --stop -o --quiet --pidfile $PIDFILE
+ local ret=$?
+ eend ${ret} "Failed to stop edna"
+ rm -f $PIDFILE
+ return ${ret}
}