freebsd-ports/net/openldap22-server/files/slurpd.sh
Doug Barton c49d1a3273 Remove the FreeBSD KEYWORD from all rc.d scripts where it appears.
We have not checked for this KEYWORD for a long time now, so this
is a complete noop, and thus no PORTREVISION bump. Removing it at
this point is mostly for pedantic reasons, and partly to avoid
perpetuating this anachronism by copy and paste to future scripts.
2006-02-20 20:47:50 +00:00

36 lines
602 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: slurpd
# REQUIRE: slapd
# BEFORE:
# KEYWORD: 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"