freebsd-ports/net/openldap24-server/files/slurpd.sh
Oliver Eikemeier 47acbb6df7 update to 2.2.15
- new switch WITH_DYNAMIC_BACKENDS
- WITH_ODBC has to be specified, even when WITH_ODBC_TYPE is set
- 5.x users: when you need to start the daemon early, build with
  WITH_RCORDER=yes to put the start script into /etc/rc.d
2004-08-15 18:18:46 +00:00

36 lines
610 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: slurpd
# REQUIRE: slapd
# BEFORE:
# KEYWORD: FreeBSD shutdown
# Add the following line to /etc/rc.conf to enable slurpd:
#
#slurpd_enable="YES"
#
# See slurpd(8) for more flags
#
. "%%RC_SUBR%%"
name="slurpd"
rcvar=`set_rcvar`
command="%%PREFIX%%/libexec/slurpd"
required_files="%%PREFIX%%/etc/openldap/slapd.conf"
# read settings, set defaults
load_rc_config $name
: ${slurpd_enable="NO"}
if [ -n "${slurpd_args+set}" ]; then
warn "slurpd_args is deprecated, use slurpd_flags"
: ${slurpd_flags="$slurpd_args"}
else
: ${slurpd_flags=""}
fi
run_rc_command "$1"