projects
/
openwrt-10.03
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Change openssl lib dependency from openssl to libopenssl
[openwrt-10.03/.git]
/
package
/
osiris
/
files
/
osirisd.init
1
#!/bin/sh
2
3
BIN=osirisd
4
DEFAULT=/etc/default/$BIN
5
LIB_D=/var/lib/osiris
6
RUN_D=/var/run
7
PID_F=$RUN_D/$BIN.pid
8
[ -f $DEFAULT ] && . $DEFAULT
9
10
case $1 in
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
*)
20
echo "usage: $0 (start|stop)"
21
exit 1
22
esac
23
exit $?