f9e3705caaeb9c04bc1f4a80f7352efad01e0bd0
[openwrt/svn-archive/archive.git] / net / gmediaserver / files / gmediaserver.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 BIN=gmediaserver
5 DEFAULT=/etc/default/$BIN
6 RUN_D=/var/run
7 PID_F=$RUN_D/$BIN.pid
8
9 start() {
10 [ -f $DEFAULT ] && . $DEFAULT
11 $BIN $OPTIONS
12 }
13
14 stop() {
15 [ -f $PID_F ] && kill $(cat $PID_F)
16 }
17