From 3d747a953cee5cfd1a36d65d17c70c5f13a41908 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 16 Jan 2019 13:54:13 +0100 Subject: [PATCH] Fix the acmetool letsencrypt hook for the mongod service. See https://support.d4science.org/issues/13157 --- mongodb-org/templates/mongodb-letsencrypt-acmetool.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mongodb-org/templates/mongodb-letsencrypt-acmetool.sh b/mongodb-org/templates/mongodb-letsencrypt-acmetool.sh index dae0d086..152d2db1 100644 --- a/mongodb-org/templates/mongodb-letsencrypt-acmetool.sh +++ b/mongodb-org/templates/mongodb-letsencrypt-acmetool.sh @@ -22,10 +22,10 @@ chmod 440 ${MONGODB_CERTFILE} chgrp mongodb ${MONGODB_CERTFILE} {% if mongodb_ssl_enabled %} -echo "Reload the mongodb service" >> $LE_LOG_DIR/mongodb.log -service mongodb stop >/dev/null 2>&1 +echo "Reload the mongod service" >> "$LE_LOG_DIR/mongodb.log" +service mongod stop >> "$LE_LOG_DIR/mongodb.log" 2>&1 sleep 10 -service mongodb start >/dev/null 2>&1 +service mongod start > "$LE_LOG_DIR/mongodb.log" 2>&1 {% endif %} echo "Done." >> $LE_LOG_DIR/mongodb.log