#8201 closed defect (duplicate)
BUG: openldap-2.2 - Invalid pidfile, argsfile directives in slapd.conf
Reported by: | unit12@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.2 |
Keywords: | Cc: | landonf@…, markd@… | |
Port: |
Description
After installation, the generated slapd.conf file contains the following directives:
pidfile /opt/local/var/run/run/slapd.pid argsfile /opt/local/var/run/run/slapd.args
Note the duplicated run/ component.
This causes the ${prefix}/etc/rc.d/slapd.sh file to fail on shutdown because it can't find the pid file.
Change History (6)
comment:1 Changed 18 years ago by markd@…
Cc: | markd@… added |
---|---|
Summary: | Invalid pidfile, argsfile directives in slapd.conf → BUG: openldap-2.2 - Invalid pidfile, argsfile directives in slapd.conf |
comment:2 Changed 18 years ago by markd@…
Either 1) the --localstatedir configure option needs to be changed from:
--localstatedir=${prefix}/var/run
to:
--localstatedir=${prefix}/var
2) Or the startup file and the slapd.conf files (perhaps others?) needs to be changed. Someone that uses openldap would need to test this, but option 2 seems the better one since the localstatedir seems incorrect. The port also needs to be converted to the new post DP 1.2 StartupItems.
comment:3 Changed 18 years ago by markd@…
Just for reference, the paths for Apple's implementation of openldap in OS X server are:
/var/db/openldap/openldap-data /var/db/openldap/openldap-slurp /var/db/openldap/run
/etc/openldap/
It would take some patching to get the port to do that but it looks like other package managers do just that to get the directories where they want them since the port does not have switches to locate these directories independently.
comment:4 Changed 18 years ago by pipping@…
Milestone: | → Port Bugs |
---|
comment:5 Changed 18 years ago by markd@…
Cc: | markd@… added; markd@… removed |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Fix attached to #11659. Closing this as duplicate.
Changing title to contain the portname.