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