summaryrefslogtreecommitdiff
path: root/audio/mt-daapd/rc.mt-daapd
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2010-05-11 20:30:53 +0200
committerHeinz Wiesinger <pprkut@slackbuilds.org>2010-05-11 20:30:53 +0200
commit9f10e0c3785ea0e1468e4c971f0428a5c72e56a8 (patch)
tree7add631e68cb71c1c6121f9c423e778d2594aa13 /audio/mt-daapd/rc.mt-daapd
parent5d0a20d58b80ecd8d783990bfc1ebd25596725e3 (diff)
downloadslackbuilds-9f10e0c3785ea0e1468e4c971f0428a5c72e56a8.tar.gz
audio/mt-daapd: Moved from multimedia
Diffstat (limited to 'audio/mt-daapd/rc.mt-daapd')
-rw-r--r--audio/mt-daapd/rc.mt-daapd35
1 files changed, 35 insertions, 0 deletions
diff --git a/audio/mt-daapd/rc.mt-daapd b/audio/mt-daapd/rc.mt-daapd
new file mode 100644
index 0000000000..c2d88322b7
--- /dev/null
+++ b/audio/mt-daapd/rc.mt-daapd
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# mt-daapd iTunes music server daemon.
+#
+
+start() {
+ if [ -x /usr/sbin/mt-daapd ]; then
+ echo "Starting mt-daapd iTunes server: /usr/sbin/mt-daapd"
+ /usr/sbin/mt-daapd -c /etc/mt-daapd.conf 2> /dev/null
+ sleep 1
+ fi
+}
+
+stop() {
+ echo "Killing mt-daapd iTunes server... "
+ killall /usr/sbin/mt-daapd 2> /dev/null
+}
+
+# How to call it.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart)
+ stop
+ sleep 1
+ start
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|restart}"
+ ;;
+esac