From dcc5c2b1c38ba62ca0218961d7af6fb43e9662d0 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 22 Jun 2017 17:47:42 +0200 Subject: [PATCH] library/roles/orientdb: Fix the init script so that the shutdown command does not go into background. --- orientdb/tasks/main.yml | 1 + orientdb/templates/orientdb.init.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/orientdb/tasks/main.yml b/orientdb/tasks/main.yml index ef8c370f..2e7017f9 100644 --- a/orientdb/tasks/main.yml +++ b/orientdb/tasks/main.yml @@ -18,6 +18,7 @@ - name: Install the orientdb startup script 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 file: dest={{ orientdb_log_dir }} state=directory owner={{ orientdb_user }} group={{ orientdb_user }} mode=0755 diff --git a/orientdb/templates/orientdb.init.j2 b/orientdb/templates/orientdb.init.j2 index 0ad1f4ce..d5839bd5 100755 --- a/orientdb/templates/orientdb.init.j2 +++ b/orientdb/templates/orientdb.init.j2 @@ -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 >> {{ 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() {