diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-07-07 04:55:18 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-07-07 04:55:18 +0000 |
commit | a135f8563fea25509d9a92db7c03ac3d08230a3f (patch) | |
tree | e6bb5fb8723790e6b479a3f6a00d19694b5a571d /staging/openldap/slapd | |
parent | b215b5e985b9310dff8d992510f12a87141fe7cb (diff) |
Thu Jul 7 04:55:18 UTC 2011
Diffstat (limited to 'staging/openldap/slapd')
-rwxr-xr-x | staging/openldap/slapd | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/staging/openldap/slapd b/staging/openldap/slapd deleted file mode 100755 index 392075027..000000000 --- a/staging/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 /var/run/slapd.pid - rm -f /var/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 |