aboutsummaryrefslogtreecommitdiff
path: root/net/openldap24-server/files/slurpd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/openldap24-server/files/slurpd.sh')
-rw-r--r--net/openldap24-server/files/slurpd.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/net/openldap24-server/files/slurpd.sh b/net/openldap24-server/files/slurpd.sh
index ba2f2944c6e2..434dca3d130f 100644
--- a/net/openldap24-server/files/slurpd.sh
+++ b/net/openldap24-server/files/slurpd.sh
@@ -23,9 +23,14 @@ rcvar=`set_rcvar`
command=%%PREFIX%%/libexec/slurpd
required_files=%%PREFIX%%/etc/openldap/slapd.conf
-
-slurpd_enable="NO"
-slurpd_args=
+[ -z "$slurpd_enable" ] && slurpd_enable="NO"
+[ -z "$slurpd_flags" ] && slurpd_flags=
load_rc_config $name
+
+if [ -n "$slurpd_args" ]; then
+ warn "slurpd_args is deprecated, use slurpd_flags"
+ slurpd_flags="$slurpd_args"
+end
+
run_rc_command "$1"