Bug 258418

Summary: net/openldap24-server (and openldap25-server) Silence warning at service startup
Product: Ports & Packages Reporter: Romain Tartière <romain>
Component: Individual Port(s)Assignee: Xin LI <delphij>
Status: New ---    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (delphij)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch to remove the warning none

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).