4 test -f /usr
/bin
/mpd ||
exit 0
5 test -f /etc
/mpd.conf ||
exit 0
8 printf "Starting mpd: "
9 start-stop-daemon
--start --quiet --background --exec /usr
/bin
/mpd \
10 && echo "OK" ||
echo "FAIL"
14 printf "Stopping mpd: "
15 start-stop-daemon
--stop --quiet --pidfile /var
/run
/mpd.pid \
16 && echo "OK" ||
echo "FAIL"
32 echo "Usage: $0 {start|stop|restart}"