From f38a03d8a0f02847b00805c1eda06e3bf42e2789 Mon Sep 17 00:00:00 2001 From: Mark Reynolds Date: Jan 15 2019 03:56:16 +0000 Subject: Ticket 50153 - Increase default max logs Bug Description: The errors & audit logs default to max number of logs to 1. This prevents the max log size rotation policy from working. This is documented in the docs, but the problem is that this can allow the server to fill up the FS on /var under certain conditions. Fix Description: Change the default max number of logs to "2". This is still a small value, and it allows the rotation policy to be effective. https://pagure.io/389-ds-base/issue/50153 Reviewed by: spichugi & firstyear (Thanks!!) (cherry picked from commit ca13f42da4d49fd30200fed960e1ad2d0fd1c763) --- diff --git a/ldap/servers/slapd/slap.h b/ldap/servers/slapd/slap.h index a027926..618e245 100644 --- a/ldap/servers/slapd/slap.h +++ b/ldap/servers/slapd/slap.h @@ -320,8 +320,8 @@ typedef void (*VFPV)(); /* takes undefined arguments */ #define SLAPD_DEFAULT_LOG_ROTATIONTIME_STR "1" #define SLAPD_DEFAULT_LOG_ACCESS_MAXNUMLOGS 10 #define SLAPD_DEFAULT_LOG_ACCESS_MAXNUMLOGS_STR "10" -#define SLAPD_DEFAULT_LOG_MAXNUMLOGS 1 -#define SLAPD_DEFAULT_LOG_MAXNUMLOGS_STR "1" +#define SLAPD_DEFAULT_LOG_MAXNUMLOGS 2 +#define SLAPD_DEFAULT_LOG_MAXNUMLOGS_STR "2" #define SLAPD_DEFAULT_LOG_EXPTIME 1 #define SLAPD_DEFAULT_LOG_EXPTIME_STR "1" /* This is in MB */