diff options
author | Nicolas Thill <nico@openwrt.org> | 2005-08-24 19:11:35 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2005-08-24 19:11:35 +0000 |
commit | 4b5411bdc98e997021c5d48ec6a4c76230058afd (patch) | |
tree | 59ba43e5f449df53dd2ca8fcea9fdf71e90ed2e7 /package/mt-daapd/files | |
parent | 128c3027fe25484f29a3f6b21151b459fed1d83a (diff) | |
download | upstream-4b5411bdc98e997021c5d48ec6a4c76230058afd.tar.gz upstream-4b5411bdc98e997021c5d48ec6a4c76230058afd.tar.bz2 upstream-4b5411bdc98e997021c5d48ec6a4c76230058afd.zip |
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.init | 22 |
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 $? |