summaryrefslogtreecommitdiffstats
path: root/extra/openldap/slapd
diff options
context:
space:
mode:
Diffstat (limited to 'extra/openldap/slapd')
-rw-r--r--extra/openldap/slapd29
1 files changed, 29 insertions, 0 deletions
diff --git a/extra/openldap/slapd b/extra/openldap/slapd
new file mode 100644
index 000000000..6a5e7d205
--- /dev/null
+++ b/extra/openldap/slapd
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# /etc/rc.d/slapd: start/stop Stand-alone LDAP Daemon
+#
+
+SLAPD_PID=/var/openldap/run/slapd.pid
+
+case in
+start)
+/usr/sbin/slapd
+;;
+stop)
+if [ -f ]; then
+kill -INT
+else
+killall -q /usr/sbin/slapd
+fi
+;;
+restart)
+-su stop
+sleep 2
+-su start
+;;
+*)
+echo "usage: -su [start|stop|restart]"
+;;
+esac
+
+# End of file