library/roles/orientdb: delay the start after the stop in the letsencrypt hook. See https://support.d4science.org/issues/8992

This commit is contained in:
Andrea Dell'Amico 2017-06-22 16:31:27 +02:00
parent d3154f5d95
commit 334103a150
2 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,7 @@
- name: Install a letsencrypt hook to update the orientdb certificate
template: src=orientdb-letsencrypt-acme.sh.j2 dest={{ letsencrypt_acme_services_scripts_dir }}/orientdb owner=root group=root mode=4555
tags: [ 'orientdb', 'letsencrypt' ]
tags: [ 'orientdb', 'letsencrypt', 'orientdb_letsencrypt' ]
when:
- orientdb_install
- orientdb_letsencrypt_ssl_enabled

View File

@ -26,8 +26,11 @@ fi
chmod 440 {{ java_keyring_file }}
chgrp {{ orientdb_user }} {{ java_keyring_file }}
logger "orientdb letsencrypt hook: shut down orientdb."
/etc/init.d/orientdb stop
sleep 30
/etc/init.d/orientdb start
logger "orientdb letsencrypt hook: start orientdb."
logger "orientdb letsencrypt hook: the keystore has been updated with the renewed certificate."
exit 0