2011-01-07 05:24:30 -05:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2012-05-05 10:41:30 -04:00
|
|
|
# $OpenBSD: slapd.rc,v 1.4 2012/05/05 14:41:30 sthen Exp $
|
2011-01-07 07:24:32 -05:00
|
|
|
|
|
|
|
daemon="${TRUEPREFIX}/libexec/slapd"
|
2011-01-13 10:41:40 -05:00
|
|
|
daemon_flags="-u _openldap"
|
2011-01-07 05:24:30 -05:00
|
|
|
|
2012-05-05 10:41:30 -04:00
|
|
|
# To bind to multiple URLs, pass this to rc.d(8) via /etc/rc.conf.local:
|
|
|
|
# slapd_flags="-u _openldap -h ldap:///\ ldaps:///"
|
|
|
|
# Note the escaped space between URLs. ^^
|
|
|
|
|
2011-01-07 05:24:30 -05:00
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
|
|
|
|
rc_reload=NO
|
|
|
|
|
|
|
|
rc_pre() {
|
|
|
|
/usr/bin/install -d -o _openldap /var/run/openldap
|
|
|
|
}
|
|
|
|
|
|
|
|
rc_cmd $1
|