summaryrefslogtreecommitdiff
path: root/net/openldap24-server/files/slurpd.sh
diff options
context:
space:
mode:
authorOliver Eikemeier <eik@FreeBSD.org>2004-08-15 18:18:46 +0000
committerOliver Eikemeier <eik@FreeBSD.org>2004-08-15 18:18:46 +0000
commit47acbb6df71ce04caee06b7dcc15c02bc201e720 (patch)
treef587c33ae7256bbb352b3dcf9e675416302f9036 /net/openldap24-server/files/slurpd.sh
parentFix build with gcc 3.4 (diff)
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
Diffstat (limited to 'net/openldap24-server/files/slurpd.sh')
-rw-r--r--net/openldap24-server/files/slurpd.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/net/openldap24-server/files/slurpd.sh b/net/openldap24-server/files/slurpd.sh
index 558f58c1f592..79021305b400 100644
--- a/net/openldap24-server/files/slurpd.sh
+++ b/net/openldap24-server/files/slurpd.sh
@@ -15,22 +15,22 @@
# See slurpd(8) for more flags
#
-. %%RC_SUBR%%
+. "%%RC_SUBR%%"
-name=slurpd
+name="slurpd"
rcvar=`set_rcvar`
-command=%%PREFIX%%/libexec/slurpd
-required_files=%%PREFIX%%/etc/openldap/slapd.conf
-
-[ -z "$slurpd_enable" ] && slurpd_enable="NO"
-[ -z "$slurpd_flags" ] && slurpd_flags=
+command="%%PREFIX%%/libexec/slurpd"
+required_files="%%PREFIX%%/etc/openldap/slapd.conf"
+# read settings, set defaults
load_rc_config $name
-
-if [ -n "$slurpd_args" ]; then
+: ${slurpd_enable="NO"}
+if [ -n "${slurpd_args+set}" ]; then
warn "slurpd_args is deprecated, use slurpd_flags"
- slurpd_flags="$slurpd_args"
+ : ${slurpd_flags="$slurpd_args"}
+else
+ : ${slurpd_flags=""}
fi
run_rc_command "$1"