diff options
Diffstat (limited to 'net/openldap23-server/files/slurpd.in')
-rw-r--r-- | net/openldap23-server/files/slurpd.in | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/net/openldap23-server/files/slurpd.in b/net/openldap23-server/files/slurpd.in new file mode 100644 index 000000000000..087ac22238d6 --- /dev/null +++ b/net/openldap23-server/files/slurpd.in @@ -0,0 +1,35 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: slurpd +# REQUIRE: slapd +# BEFORE: +# KEYWORD: shutdown + +# Add the following line to /etc/rc.conf to enable slurpd: +# +# slurpd_enable="YES" +# slurpd_flags="<set as needed>" +# +# See slurpd(8) for more flags +# + +. /etc/rc.subr + +name="slurpd" +rcvar=slurpd_enable + +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"} +fi + +run_rc_command "$1" |