summaryrefslogtreecommitdiffstats
path: root/package/multimedia/mpd/S95mpd
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2011-01-20 17:49:42 -0300
committerPeter Korsgaard <jacmet@sunsite.dk>2011-01-21 15:00:17 +0100
commitde597b402be027b1b0b0d86fd5f3dc8a1031c7f2 (patch)
treea5439b46432e28e684db72c0d812bdf0ebc92de8 /package/multimedia/mpd/S95mpd
parent64129c0546dfeaef6fa1eb8ad78901e9fd12f20a (diff)
downloadbuildroot-novena-de597b402be027b1b0b0d86fd5f3dc8a1031c7f2.tar.gz
buildroot-novena-de597b402be027b1b0b0d86fd5f3dc8a1031c7f2.zip
mpd: new package
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/multimedia/mpd/S95mpd')
-rw-r--r--package/multimedia/mpd/S95mpd30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/multimedia/mpd/S95mpd b/package/multimedia/mpd/S95mpd
new file mode 100644
index 000000000..7c242f432
--- /dev/null
+++ b/package/multimedia/mpd/S95mpd
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+start() {
+ echo -n "Starting mpd: "
+ start-stop-daemon --start --quiet --background --exec /usr/bin/mpd
+ echo "OK"
+}
+
+stop() {
+ echo -n "Stopping mpd: "
+ start-stop-daemon --stop --quiet --pidfile /var/run/mpd.pid
+ echo "OK"
+}
+
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart|reload)
+ stop
+ sleep 1
+ start
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|restart}"
+ exit 1
+esac