
Lately, I've started adding something like this in my /etc/rc.local:
## OpenLDAP Server
if [ "$1" = "" -o "$1" = "openldap" ]; then
slapd_flags="-u _openldap"
if [ "$slapd_flags" != "NO" -a -x /usr/local/libexec/slapd ]; then
install -d -o _openldap /var/run/openldap
/usr/local/libexec/slapd $slapd_flags
echo -n ' slapd'
fi
fi
That way, I can stop OpenLDAP by running `sudo pkill slapd` and restart it with `sudo sh /etc/rc.local openldap`. The boot process is not affected because $1 == "" so, all daemons in my rc.local are started.