forked from ISTI-ansible-roles/ansible-roles
library/roles/orientdb: Fix the init script so that the shutdown command does not go into background.
This commit is contained in:
parent
334103a150
commit
dcc5c2b1c3
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue