blob: cc3c8e8d6e6eae40b5abf41553611df495a1fffc (
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
31
|
#!/sbin/runscript
# Override in /etc/conf.d/daapd
LOG_LEVEL=${LOG_LEVEL:-2}
LOG_DOMAINS=${LOG_DOMAINS:-'main,mdns,db,scan'}
FFID=${FFID:-daapd}
PIDFILE=/var/run/forked-daapd.pid
depend() {
need avahi-dnsconfd
}
start() {
ebegin "Starting daapd"
start-stop-daemon --start forked-daapd \
--pidfile "$PIDFILE" \
-- \
-P "$PIDFILE" \
-d "$LOG_LEVEL" \
-b "$FFID" \
-D "$LOG_DOMAINS"
eend $?
}
stop() {
ebegin "Stopping daapd"
start-stop-daemon --stop forked-daapd \
--pidfile "$PIDFILE"
eend $?
}
|