diff options
Diffstat (limited to 'net/nss_ldapd/files/nslcd.in')
-rw-r--r-- | net/nss_ldapd/files/nslcd.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net/nss_ldapd/files/nslcd.in b/net/nss_ldapd/files/nslcd.in new file mode 100644 index 000000000000..bf7623d11854 --- /dev/null +++ b/net/nss_ldapd/files/nslcd.in @@ -0,0 +1,24 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: nslcd +# REQUIRE: DAEMON ldconfig resolv +# +# Add the following line to /etc/rc.conf to enable the nslcd daemon: +# +# nslcd_enable="YES" +# + +nslcd_enable=${nslcd_enable-"NO"} + +. %%RC_SUBR%% + +name=nslcd +rcvar=$(set_rcvar) + +command="%%PREFIX%%/sbin/%{name}" +pidfile="/var/run/${name}.pid" + +load_rc_config ${name} +run_rc_command "$1" |