[Bug 258418] net/openldap24-server (and openldap25-server) Silence warning at service startup

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 11 Sep 2021 01:07:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258418

            Bug ID: 258418
           Summary: net/openldap24-server (and openldap25-server) Silence
                    warning at service startup
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: delphij@FreeBSD.org
          Reporter: romain@FreeBSD.org
          Assignee: delphij@FreeBSD.org
             Flags: maintainer-feedback?(delphij@FreeBSD.org)

Created attachment 227822
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227822&action=edit
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).

-- 
You are receiving this mail because:
You are the assignee for the bug.