projects
/
cloudstore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
move NAME to _start_stop
[cloudstore.git]
/
init.d
/
_start_stop
diff --git
a/init.d/_start_stop
b/init.d/_start_stop
index
bec49ec
..
009eaed
100755
(executable)
--- a/
init.d/_start_stop
+++ b/
init.d/_start_stop
@@
-1,4
+1,5
@@
BACKGROUND=1
+NAME=`basename $0`
_start_stop() {
@@
-6,7
+7,7
@@
case $1 in
start)
cd /srv/cloudstore
if [ "$BACKGROUND" -eq 1 ] ; then
- ( $DAEMON 2>&1 ) > /tmp/$NAME.log &
+ ( $DAEMON 2>&1 ) >
>
/tmp/$NAME.log &
echo $! > /tmp/$NAME.pid
else
$DAEMON