blob: cf46fc45398f75013164f851bb7448ba8409e046 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/sbin/runscript
#
# Startup script for the edna mp3 mini server
#
# description: edna is a mini mp3 webserver
# processname: python
# pidfile: /var/run/ednad.pid
# config:
export PYTHONPATH=/usr/lib/edna
EDNA=/usr/bin/edna
EDNACONF=/etc/edna/edna.conf
PIDFILE=/var/run/edna.pid
depend() {
need local
}
start() {
ebegin "Starting ednad mp3 server"
start-stop-daemon -m -b --start --quiet --pidfile $PIDFILE \
--exec $EDNA -- $EDNACONF
eend $?
}
stop() {
ebegin "Stopping ednad"
start-stop-daemon -o --quiet --stop --pidfile $PIDFILE
eend $?
}
|