Do not restart the ldap service when a certificate is being renewed. Search for a better solution.

This commit is contained in:
Andrea Dell'Amico 2018-05-08 20:39:22 +02:00
parent 7d707c10c0
commit 5e12af6402
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ chmod 400 $OPENLDAP_CERTDIR/privkey.pem
echo "Restart the openldap service" >> $LE_LOG_DIR/openldap.log echo "Restart the openldap service" >> $LE_LOG_DIR/openldap.log
if [ -x /bin/systemctl ] ; then if [ -x /bin/systemctl ] ; then
systemctl force-reload slapd >/dev/null 2>&1 systemctl force-reload slapd >/dev/null 2>&1
else # else
service slapd force-reload >/dev/null 2>&1 # service slapd force-reload >/dev/null 2>&1
fi fi
echo "Done." >> $LE_LOG_DIR/openldap.log echo "Done." >> $LE_LOG_DIR/openldap.log