[Packages] sound/mt-daapd: Update to 0.2.4.2
[openwrt/svn-archive/archive.git] / sound / mt-daapd / files / mt-daapd.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3 START=50
4
5 BIN=mt-daapd
6 DEFAULT=/etc/default/$BIN
7 RUN_D=/var/run
8 PID_F=$RUN_D/$BIN.pid
9
10 start() {
11 [ -f $DEFAULT ] && . $DEFAULT
12 [ -d $RUN_D ] || mkdir -p $RUN_D
13 $BIN $OPTIONS
14 }
15
16 stop() {
17 [ -f $PID_F ] && kill -INT $(cat $PID_F)
18 }
19