Bug 258418 - net/openldap24-server (and openldap25-server) Silence warning at service startup
Summary: net/openldap24-server (and openldap25-server) Silence warning at service startup
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Xin LI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-11 01:07 UTC by Romain Tartière
Modified: 2021-09-11 01:07 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (delphij)


Attachments
Patch to remove the warning (1.61 KB, patch)
2021-09-11 01:07 UTC, Romain Tartière
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Romain Tartière freebsd_committer freebsd_triage 2021-09-11 01:07:34 UTC
Created attachment 227822 [details]
Patch to remove the warning

When slapd is configured with slapd_cn_config, each invocation of the service produce a warning:

root@agrajag /usr/home/romain # service slapd status
grep: /usr/local/etc/openldap/slapd.d/cn=config/olcDatabase={1}mdb: Is a directory
slapd is running as pid 32935.

Adding a `-s` to tell grep to be silent fix the issue (patch attached, I did not include PORTREVISION bump in case you want to integrate this in a future commit you make).