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