sleep 5
done
-echo "Waiting 15 seconds for slapds to sync..."
+echo "Waiting 15 seconds for shadow subtrees to sync..."
sleep 15
for P in $PORT1 $PORT2 ; do
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
if test $? != 0 ; then
echo "comparison failed - database was not created correctly"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit 1
fi
done