diff options
Diffstat (limited to 'net/openldap24-server/files/slurpd.sh')
-rw-r--r-- | net/openldap24-server/files/slurpd.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/net/openldap24-server/files/slurpd.sh b/net/openldap24-server/files/slurpd.sh new file mode 100644 index 000000000000..79021305b400 --- /dev/null +++ b/net/openldap24-server/files/slurpd.sh @@ -0,0 +1,36 @@ +#!/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" |