projects
/
cloudstore.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
009eaed9440767d71fc6fcc2f1ddc6d562cb0635
[cloudstore.git]
/
init.d
/
_start_stop
1
BACKGROUND=1
2
NAME=`basename $0`
3
4
_start_stop() {
5
6
case $1 in
7
start)
8
cd /srv/cloudstore
9
if [ "$BACKGROUND" -eq 1 ] ; then
10
( $DAEMON 2>&1 ) >> /tmp/$NAME.log &
11
echo $! > /tmp/$NAME.pid
12
else
13
$DAEMON
14
fi
15
;;
16
stop)
17
kill `cat /tmp/$NAME.pid` ;;
18
*)
19
echo "usage: $0 {start|stop}" ;;
20
esac
21
exit 0
22
23
}