libnet-1.1.x: enable autoreconf, clean up patches
[openwrt/svn-archive/archive.git] / admin / osiris / files / osirisd.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3 START=50
4
5 BIN=osirisd
6 DEFAULT=/etc/default/$BIN
7 LIB_D=/var/lib/osiris
8 RUN_D=/var/run
9 PID_F=$RUN_D/$BIN.pid
10
11 start() {
12 [ -f $DEFAULT ] && . $DEFAULT
13 mkdir -p $LIB_D
14 mkdir -p $RUN_D
15 $BIN $OPTIONS
16 }
17 stop() {
18 [ -f $PID_F ] && kill $(cat $PID_F)
19 }
20