File: slapi-errorlog-file

package info (click to toggle)
openldap 2.6.10%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 31,080 kB
  • sloc: ansic: 328,961; sh: 51,256; cpp: 6,011; makefile: 3,320; sql: 1,714; perl: 455; python: 184; tcl: 45
file content (18 lines) | stat: -rw-r--r-- 795 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
The slapi error log file defaults to /var/errors given our setting
of --localstatedir.  Move it to /var/log/slapi-errors instead.

Debian-specific.

Index: openldap/servers/slapd/slapi/slapi_overlay.c
===================================================================
--- openldap.orig/servers/slapd/slapi/slapi_overlay.c	2022-05-20 17:36:09.141243662 -0400
+++ openldap/servers/slapd/slapi/slapi_overlay.c	2022-05-20 17:36:09.141243662 -0400
@@ -933,7 +933,7 @@
 		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 )