libselinux: use $(HOST_MAKE_ENV) when calling $(MAKE)
[buildroot-gz.git] / package / minidlna / S60minidlnad
blob9b158afd98c78bcadc4ac98209ae724fbd712d03
1 #!/bin/sh
3 # minidlnad Starts minidlnad.
6 start() {
7 printf "Starting minidlna: "
8 umask 077
9 start-stop-daemon -S -q -p /var/run/minidlna/minidlna.pid \
10 --exec /usr/sbin/minidlnad -- "$@"
11 [ $? = 0 ] && echo "OK" || echo "FAIL"
13 stop() {
14 printf "Stopping minidlna: "
15 start-stop-daemon -K -q -p /var/run/minidlna/minidlna.pid
16 [ $? = 0 ] && echo "OK" || echo "FAIL"
18 restart() {
19 stop
20 # Sleep needed for minidlna to restart properly
21 sleep 1
22 start "$@"
25 case "$1" in
26 start)
27 start
29 stop)
30 stop
32 restart|reload)
33 restart
35 force-reload)
36 restart -R
39 echo "Usage: $0 {start|stop|restart|force-reload}"
40 exit 1
41 esac
43 exit $?