https://bugs.openldap.org/show_bug.cgi?id=9240
Bug ID: 9240 Summary: Can't log to stdout/stderr Product: OpenLDAP Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: hadmut@danisch.de Target Milestone: ---
Hi,
slapd can send its logs and messages to syslog, which is nice and good in common Unix/Linux environments, but I didn't see any way to have the logs sent to stdout/stderr instead of syslog.
When run in a docker/kubernetes container, which is a typical use nowadays, it should be run as a single process, and not require a separate syslog process just to write some logs to a file. There are dirty workarounds, but if run cleanly, it should be a standalone process.
Therefore, it would be nice if slap had a container mode, where
- it doesn't fork (currently available only through debugging mode) - sends logging to stdout/stderr instead of syslog
regards