slapi-errorlog-file
authorDebian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Thu, 13 Jun 2024 02:23:12 +0000 (19:23 -0700)
committerRyan Tandy <ryan@nardis.ca>
Thu, 13 Jun 2024 02:23:12 +0000 (19:23 -0700)
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 1516f0b73832d569f0bcf5e1db7d637ed7061a99..6497934869e3389c569c7c65d811a2d076ea5a82 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 )