slapi-errorlog-file
authorDebian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)
committerRyan Tandy <ryan@nardis.ca>
Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)
The slapi error log file defaults to /var/errors given our setting
of --localstatedir.  Move it to /var/log/slapi-errors instead.

Debian-specific.

Gbp-Pq: Name slapi-errorlog-file

servers/slapd/slapi/slapi_overlay.c

index 56badf4080bf62ca18d727f5dd6ca38a59458ea0..763dead23c92b985e3a6da38ee19441a36673727 100644 (file)
@@ -933,7 +933,7 @@ int slapi_over_config( BackendDB *be, ConfigReply *cr )
                ldap_pvt_thread_mutex_init( &slapi_printmessage_mutex );
 
                if ( slapi_log_file == NULL )
-                       slapi_log_file = slapi_ch_strdup( LDAP_RUNDIR LDAP_DIRSEP "errors" );
+                       slapi_log_file = slapi_ch_strdup( LDAP_RUNDIR LDAP_DIRSEP "log" LDAP_DIRSEP "slapi-errors" );
 
                rc = slapi_int_init_object_extensions();
                if ( rc != 0 )