Moved debug level for slapd to configuration value(default 1)

master
noah metz 2023-12-04 15:12:56 -07:00
parent da44d9c068
commit 6860c0f312
1 changed files with 7 additions and 8 deletions

@ -23,7 +23,8 @@
(backup-date (date (current-date))
"date that backup(seed) is from, to not use the same/older seed")
(uris (string "ldap:// ldapi://")
"slapd uris to accept connections to"))
"slapd uris to accept connections to")
(log-level (integer 1) "log level to start slapd with"))
(define (slapd-accounts config)
(list (user-group
@ -128,20 +129,18 @@
(slapd-configuration-openldap
config)
"/libexec/slapd")
"-d" ;To run in foreground
#$(number->string (slapd-configuration-log-level
config))
"-F"
"/var/lib/slapd/slapd.d"
"-h"
#$(slapd-configuration-uris config)
#$(slapd-configuration-uris
config)
"-u"
"slapd"
"-g"
"slapd")
#:environment-variables
(list (string-append
"LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:"
#$(slapd-configuration-home
config)
"/modules"))
#:user "root"
#:group "root"))
(stop #~(make-kill-destructor)))))