3 # minidlnad Starts minidlnad.
7 printf "Starting minidlna: "
9 start-stop-daemon
-S -q -p /var
/run
/minidlna
/minidlna.pid \
10 --exec /usr
/sbin
/minidlnad
-- "$@"
11 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
14 printf "Stopping minidlna: "
15 start-stop-daemon
-K -q -p /var
/run
/minidlna
/minidlna.pid
16 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
20 # Sleep needed for minidlna to restart properly
39 echo "Usage: $0 {start|stop|restart|force-reload}"