Bug 166492 - net/openldap24-server: rc.d-srcipt not applicable to TMPFS driven /var/run
Summary: net/openldap24-server: rc.d-srcipt not applicable to TMPFS driven /var/run
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Xin LI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-29 15:00 UTC by O. Hartmann
Modified: 2012-03-30 10:40 UTC (History)
0 users

See Also:


Attachments
file.diff (458 bytes, patch)
2012-03-29 15:00 UTC, O. Hartmann
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2012-03-29 15:00:19 UTC
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:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-03-29 15:00:36 UTC
Responsible Changed
From-To: freebsd-ports-bugs->delphij

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Xin LI freebsd_committer freebsd_triage 2012-03-29 17:56:16 UTC
State Changed
From-To: open->closed

Fixed with a different way, thanks for your submission!
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-03-29 17:56:21 UTC
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"
Comment 4 O. Hartmann 2012-03-30 09:48:09 UTC
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
Comment 5 dfilter service freebsd_committer freebsd_triage 2012-03-30 10:33:40 UTC
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"