echo "Stopping the provider, sleeping 10 seconds and restarting it..."
kill -HUP "$PID"
+wait $PID
sleep 10
echo "RESTART" >> $LOG1
$SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING >> $LOG1 2>&1 &
echo "Stopping consumer to test recovery..."
kill -HUP $SLAVEPID
-sleep 10
+wait $SLAVEPID
echo "Modifying more entries on the master..."
$LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD >> \
fi
echo ">>>>> Test succeeded"
+
+test $KILLSERVERS != no && wait
+
exit 0