| 1 |
The slapi error log file defaults to /var/errors given our setting |
| 2 |
of --localstatedir. Move it to /var/log/slapi-errors instead. |
| 3 |
|
| 4 |
Debian-specific. |
| 5 |
|
| 6 |
Index: openldap/servers/slapd/slapi/slapi_overlay.c |
| 7 |
=================================================================== |
| 8 |
--- openldap.orig/servers/slapd/slapi/slapi_overlay.c 2022-05-20 17:36:09.141243662 -0400 |
| 9 |
+++ openldap/servers/slapd/slapi/slapi_overlay.c 2022-05-20 17:36:09.141243662 -0400 |
| 10 |
@@ -933,7 +933,7 @@ |
| 11 |
ldap_pvt_thread_mutex_init( &slapi_printmessage_mutex ); |
| 12 |
|
| 13 |
if ( slapi_log_file == NULL ) |
| 14 |
- slapi_log_file = slapi_ch_strdup( LDAP_RUNDIR LDAP_DIRSEP "errors" ); |
| 15 |
+ slapi_log_file = slapi_ch_strdup( LDAP_RUNDIR LDAP_DIRSEP "log" LDAP_DIRSEP "slapi-errors" ); |
| 16 |
|
| 17 |
rc = slapi_int_init_object_extensions(); |
| 18 |
if ( rc != 0 ) |