slapd.rc 417 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. #
  3. # $OpenBSD: slapd.rc,v 1.4 2012/05/05 14:41:30 sthen Exp $
  4. daemon="${TRUEPREFIX}/libexec/slapd"
  5. daemon_flags="-u _openldap"
  6. # To bind to multiple URLs, pass this to rc.d(8) via /etc/rc.conf.local:
  7. # slapd_flags="-u _openldap -h ldap:///\ ldaps:///"
  8. # Note the escaped space between URLs. ^^
  9. . /etc/rc.d/rc.subr
  10. rc_reload=NO
  11. rc_pre() {
  12. /usr/bin/install -d -o _openldap /var/run/openldap
  13. }
  14. rc_cmd $1