slapi-errorlog-file
authorDebian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Wed, 28 Oct 2020 04:07:29 +0000 (04:07 +0000)
committerRyan Tandy <ryan@nardis.ca>
Wed, 28 Oct 2020 04:07:29 +0000 (04:07 +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 cc24b77713dc2e59ce0a4f05df4c9d8bc8525a64..ef658660e73b83efd67ba14b254ec2f0b68e1443 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 )