summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/edna/files/edna.gentoo')
-rw-r--r--media-sound/edna/files/edna.gentoo26
1 files changed, 11 insertions, 15 deletions
diff --git a/media-sound/edna/files/edna.gentoo b/media-sound/edna/files/edna.gentoo
index 1d96de7c56db..cf46fc45398f 100644
--- a/media-sound/edna/files/edna.gentoo
+++ b/media-sound/edna/files/edna.gentoo
@@ -1,11 +1,11 @@
#!/sbin/runscript
#
-# Startup script for the edna audio server
+# Startup script for the edna mp3 mini server
#
-# description: edna is a mini mp3/ogg webserver
+# description: edna is a mini mp3 webserver
# processname: python
# pidfile: /var/run/ednad.pid
-# config: /etc/edna/edna.conf
+# config:
export PYTHONPATH=/usr/lib/edna
EDNA=/usr/bin/edna
@@ -13,22 +13,18 @@ EDNACONF=/etc/edna/edna.conf
PIDFILE=/var/run/edna.pid
depend() {
- use net
- need local
+ need local
}
start() {
- ebegin "Starting edna mp3 server"
- start-stop-daemon --quiet --pidfile $PIDFILE
- $EDNA --daemon $EDNACONF
- eend $? "Failed to start edna"
+ ebegin "Starting ednad mp3 server"
+ start-stop-daemon -m -b --start --quiet --pidfile $PIDFILE \
+ --exec $EDNA -- $EDNACONF
+ eend $?
}
stop() {
- 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}
+ ebegin "Stopping ednad"
+ start-stop-daemon -o --quiet --stop --pidfile $PIDFILE
+ eend $?
}