library/roles/orientdb: Fix the init script so that the shutdown command does not go into background.

This commit is contained in:
Andrea Dell'Amico 2017-06-22 17:47:42 +02:00
parent 334103a150
commit dcc5c2b1c3
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@
- name: Install the orientdb startup script - name: Install the orientdb startup script
template: src=orientdb.init.j2 dest=/etc/init.d/orientdb owner=root group=root mode=0755 template: src=orientdb.init.j2 dest=/etc/init.d/orientdb owner=root group=root mode=0755
tags: [ 'orientdb', 'orientdb_init' ]
- name: Create a orientdb log directory out of the distribution directory - name: Create a orientdb log directory out of the distribution directory
file: dest={{ orientdb_log_dir }} state=directory owner={{ orientdb_user }} group={{ orientdb_user }} mode=0755 file: dest={{ orientdb_log_dir }} state=directory owner={{ orientdb_user }} group={{ orientdb_user }} mode=0755

View File

@ -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 >> {{ orientdb_log_dir }}/orientdb.log 2>&1 &" su $ORIENTDB_USER -c "cd \"$ORIENTDB_DIR/bin\"; /usr/bin/nohup ./shutdown.sh >> {{ orientdb_log_dir }}/orientdb.log 2>&1"
} }
status() { status() {