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