diff --git a/orientdb/templates/orientdb.init.j2 b/orientdb/templates/orientdb.init.j2 index eefc591a..0ad1f4ce 100755 --- a/orientdb/templates/orientdb.init.j2 +++ b/orientdb/templates/orientdb.init.j2 @@ -29,7 +29,7 @@ start() { fi echo "Starting OrientDB server daemon..." cd "$ORIENTDB_DIR/bin" - su $ORIENTDB_USER -c "cd \"$ORIENTDB_DIR/bin\"; /usr/bin/nohup ./server.sh $ORIENTDB_SERVER_OPTS 1>{{ orientdb_log_dir }}/orientdb.log 2>{{ orientdb_log_dir }}/orientdb.err &" + su $ORIENTDB_USER -c "cd \"$ORIENTDB_DIR/bin\"; /usr/bin/nohup ./server.sh $ORIENTDB_SERVER_OPTS >> {{ orientdb_log_dir }}/orientdb.log 2>&1 &" } stop() { @@ -41,7 +41,7 @@ stop() { fi echo "Stopping OrientDB server daemon..." cd "$ORIENTDB_DIR/bin" - su $ORIENTDB_USER -c "cd \"$ORIENTDB_DIR/bin\"; /usr/bin/nohup ./shutdown.sh 1>>{{ orientdb_log_dir }}/orientdb.log 2>>{{ orientdb_log_dir }}/orientdb.err &" + su $ORIENTDB_USER -c "cd \"$ORIENTDB_DIR/bin\"; /usr/bin/nohup ./shutdown.sh >> {{ orientdb_log_dir }}/orientdb.log 2>&1 &" } status() {