diff -ru openldap/slapd openldap.new/slapd --- openldap/slapd 2011-01-22 00:06:25.000000000 -0500 +++ openldap.new/slapd 2011-01-23 00:38:51.349351275 -0500 @@ -5,22 +5,12 @@ [ -f "/etc/default/slapd" ] && . /etc/default/slapd -if [ -z "$SLURPD_START" ] || [ "$SLURPD_START" = "auto" ]; then - if grep -q '^replica' /etc/openldap/slapd.conf > /dev/null 2>&1 ; then - SLURPD_START=yes - else - SLURPD_START=no - fi -fi - PID=`pidof -o %PPID /usr/sbin/slapd` -SLURPD_PID=`pidof -o %PPID /usr/sbin/slurpd` case "$1" in start) stat_busy "Starting OpenLDAP" - if [ -z "$PID" ] && [ -z "$SLURPD_PID" ]; then + if [ -z "$PID" ]; then SLAPD_OPTIONS="-f /etc/openldap/slapd.conf $SLAPD_OPTIONS" - SLURPD_OPTIONS="-f /etc/openldap/slapd.conf $SLURPD_OPTIONS" if [ -z "$SLAPD_SERVICES" ]; then /usr/sbin/slapd $SLAPD_OPTIONS else @@ -30,15 +20,6 @@ stat_fail else stat_done - if [ "$SLURPD_START" != no ]; then - stat_busy "Starting OpenLDAP Replication service" - /usr/sbin/slurpd $SLURPD_OPTIONS - if [ $? -gt 0 ]; then - stat_fail - else - stat_done - fi - fi fi add_daemon slapd else @@ -46,16 +27,6 @@ fi ;; stop) - if [ "$SLURPD_START" != no ]; then - stat_busy "Stopping OpenLDAP Replication Service" - [ ! -z "$SLURPD_PID" ] && kill "$SLURPD_PID" &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - stat_done - fi - fi - stat_busy "Stopping OpenLDAP" [ ! -z "$PID" ] && kill $PID &> /dev/null if [ $? -gt 0 ]; then diff -ru openldap/slapd.default openldap.new/slapd.default --- openldap/slapd.default 2011-01-22 00:06:25.000000000 -0500 +++ openldap.new/slapd.default 2011-01-23 00:39:01.362666678 -0500 @@ -4,6 +4,3 @@ # Example usage: #SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///" SLAPD_OPTIONS="" - -SLURPD_START="auto" -SLURPD_OPTIONS=""