slapi-errorlog-file
authorDebian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Sat, 12 Mar 2022 03:38:02 +0000 (03:38 +0000)
committerRyan Tandy <ryan@nardis.ca>
Sat, 12 Mar 2022 03:38:02 +0000 (03:38 +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 b01793b9dedc6fc15f36acaf30aeb00bac010d88..02db4ad99b14d04e39e10b29afb7e66af17ac49c 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 )