forked from ISTI-ansible-roles/ansible-roles
Fixed init script
This commit is contained in:
parent
1f8f7c7ac0
commit
8af215ec05
|
@ -29,7 +29,7 @@ start() {
|
||||||
fi
|
fi
|
||||||
echo "Starting OrientDB server daemon..."
|
echo "Starting OrientDB server daemon..."
|
||||||
cd "$ORIENTDB_DIR/bin"
|
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() {
|
stop() {
|
||||||
|
@ -41,7 +41,7 @@ stop() {
|
||||||
fi
|
fi
|
||||||
echo "Stopping OrientDB server daemon..."
|
echo "Stopping OrientDB server daemon..."
|
||||||
cd "$ORIENTDB_DIR/bin"
|
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() {
|
status() {
|
||||||
|
|
Loading…
Reference in New Issue