move NAME to _start_stop
[cloudstore.git] / init.d / _start_stop
index bec49ec..009eaed 100755 (executable)
@@ -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