summaryrefslogtreecommitdiff
path: root/package/mt-daapd/files
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-24 19:11:35 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-24 19:11:35 +0000
commitd3fb37e214c1a7001f7a30e417829452316e5ff8 (patch)
tree59ba43e5f449df53dd2ca8fcea9fdf71e90ed2e7 /package/mt-daapd/files
parent951f2c10da4078014f9685fb3e263b1691d80fe7 (diff)
add mt-daapd package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1746 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mt-daapd/files')
-rw-r--r--package/mt-daapd/files/mt-daapd.init22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/mt-daapd/files/mt-daapd.init b/package/mt-daapd/files/mt-daapd.init
new file mode 100644
index 0000000000..2968769c78
--- /dev/null
+++ b/package/mt-daapd/files/mt-daapd.init
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+BIN=mt-daapd
+DEFAULT=/etc/default/$BIN
+RUN_D=/var/run
+PID_F=$RUN_D/$BIN.pid
+[ -f $DEFAULT ] && . $DEFAULT
+
+case $1 in
+ start)
+ [ -d $RUN_D ] || mkdir -p $RUN_D
+ $BIN $OPTIONS
+ ;;
+ stop)
+ [ -f $PID_F ] && kill -INT $(cat $PID_F)
+ ;;
+ *)
+ echo "usage: $0 (start|stop)"
+ exit 1
+esac
+
+exit $?