Commits

Zhang Huangbin committed b75d888

Add checkpoint setting in OpenLDAP for data recovery, used to define
the time between BDB checkpoint operations. Default is whenever 128kb
data bytes written or 5 minutes has elapsed whichever occurs first.

Comments (0)

Files changed (3)

iRedMail/ChangeLog

 iRedMail-0.8.2:
+    * Add checkpoint setting in OpenLDAP for data recovery, used to define
+      the time between BDB checkpoint operations. Default is whenever 128kb
+      data bytes written or 5 minutes has elapsed whichever occurs first.
     * Rotate Dovecot log files on OpenBSD and FreeBSD.
     * Allow to use attribute domainGlobalAdmin for mail user.
     * Fixed:

iRedMail/conf/openldap

 #     OS will be more comfortable.
 #   * Performance of bdb backend is good enough. but Debian/Ubuntu can
 #     also use 'hdb' for OpenLDAP-2.4.x.
-export OPENLDAP_DEFAULT_DBTYPE='bdb'    # bdb, hdb(used for OpenLDAP-2.4.x)
+export OPENLDAP_DEFAULT_DBTYPE='bdb'
 
 # Default LDAP data directory.
 export OPENLDAP_DATA_DIR='/var/lib/ldap'    # Do *NOT* end with '/'.

iRedMail/functions/openldap.sh

 sizelimit   1000
 cachesize   1000
 
+# The checkpoint directive defines the time between checkpoint operations
+# in BDB. The database can only be recovered from the last checkpoint.
+# OpenLDAP default is NO CHECKPOINTING.
 #
+# Check point whenever 128kb data bytes written or 5 minutes has elapsed
+# whichever occurs first
+checkpoint  128 5
+
 # Set directory permission.
-#
 mode        0700
 
 #