Using OpenLDAP server in combination with TMPFS-backed up /var/run folder fails starting the OpenLDAP server since the folder /var/run/openldap needs to be created at the start time of the OpenLDAP server slapd. By adding a simple check to the rc.d-start script /usr/local/etc/rc.d/slapd like a check done by "dbus" or "hald" circumvents this problem. Fix: Apply attached patch. Patch attached with submission follows:
Responsible Changed From-To: freebsd-ports-bugs->delphij Over to maintainer (via the GNATS Auto Assign Tool)
State Changed From-To: open->closed Fixed with a different way, thanks for your submission!
delphij 2012-03-29 16:56:08 UTC FreeBSD ports repository Modified files: net/openldap24-server Makefile net/openldap24-server/files slapd.sh.in Log: Create LDAPRUNDIR before starting. Requested by: Oliver Hartmann <ohartman zedat fu-berlin de> PR: ports/166492 Feature safe: yes Revision Changes Path 1.196 +1 -2 ports/net/openldap24-server/Makefile 1.15 +3 -1 ports/net/openldap24-server/files/slapd.sh.in _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Am 03/29/12 18:56, schrieb delphij@FreeBSD.org: > Synopsis: net/openldap24-server: rc.d-srcipt not applicable to TMPFS driven /var/run > > State-Changed-From-To: open->closed > State-Changed-By: delphij > State-Changed-When: Thu Mar 29 16:56:16 UTC 2012 > State-Changed-Why: > Fixed with a different way, thanks for your submission! > > http://www.freebsd.org/cgi/query-pr.cgi?pr=166492 It doesn't work the way it was recently patched into the ports tree! My hack uses the check for the proper folder after "pidfile" gets defined. Using a test in any of the shell subroutines, even _precmd(), doesn't work for me and leaves the system after reboot with a non-exsitent "openldap" folder, which is prerequisit. Regards Oliver
delphij 2012-03-30 09:33:25 UTC FreeBSD ports repository Modified files: net/openldap24-server Makefile net/openldap24-server/files slapd.sh.in Log: Don't list LDAP_RUN_DIR as required_dirs since we will create it. PR: ports/166492 Noticed by: "O. Hartmann" <ohartman mail zedat fu-berlin de> Feature safe: yes Revision Changes Path 1.197 +1 -1 ports/net/openldap24-server/Makefile 1.16 +1 -2 ports/net/openldap24-server/files/slapd.sh.in _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"