package/luaposix: add .hash file
[buildroot-gz.git] / package / mpd / S95mpd
blob9f68b45837b12f839773552f4e407318369e5075
1 #!/bin/sh
3 # Sanity checks
4 test -f /usr/bin/mpd || exit 0
5 test -f /etc/mpd.conf || exit 0
7 start() {
8 printf "Starting mpd: "
9 start-stop-daemon --start --quiet --background --exec /usr/bin/mpd \
10 && echo "OK" || echo "FAIL"
13 stop() {
14 printf "Stopping mpd: "
15 start-stop-daemon --stop --quiet --pidfile /var/run/mpd.pid \
16 && echo "OK" || echo "FAIL"
19 case "$1" in
20 start)
21 start
23 stop)
24 stop
26 restart|reload)
27 stop
28 sleep 1
29 start
32 echo "Usage: $0 {start|stop|restart}"
33 exit 1
34 esac