summaryrefslogtreecommitdiff
path: root/testing/openldap/slapd
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-07-25 14:36:24 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-07-25 14:36:24 +0000
commitc52a1a6eb4ad278a7b6d9eeeb9c7c88f73ca8d8c (patch)
tree6ea332ea2bc8d6dfbfeba417c0e0d40a4608daaa /testing/openldap/slapd
parent43983783a3e8bf61896eb93a2858a14bbaf3a53b (diff)
Mon Jul 25 14:36:20 UTC 2011
Diffstat (limited to 'testing/openldap/slapd')
-rwxr-xr-xtesting/openldap/slapd48
1 files changed, 0 insertions, 48 deletions
diff --git a/testing/openldap/slapd b/testing/openldap/slapd
deleted file mode 100755
index f9caa2935..000000000
--- a/testing/openldap/slapd
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-[ -f "/etc/conf.d/slapd" ] && . /etc/conf.d/slapd
-
-PID=`pidof -o %PPID /usr/sbin/slapd`
-case "$1" in
- start)
- stat_busy "Starting OpenLDAP"
- if [ -z "$PID" ]; then
- if [ -z "$SLAPD_SERVICES" ]; then
- /usr/sbin/slapd $SLAPD_OPTIONS
- else
- /usr/sbin/slapd -h "$SLAPD_SERVICES" $SLAPD_OPTIONS
- fi
- if [ $? -gt 0 ]; then
- stat_fail
- else
- stat_done
- fi
- add_daemon slapd
- else
- stat_fail
- fi
- ;;
- stop)
- stat_busy "Stopping OpenLDAP"
- [ ! -z "$PID" ] && kill $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm -f /run/slapd.pid
- rm -f /run/slapd.args
- rm_daemon slapd
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 3
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0