mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
close 'for' appropriately; clean also 'replica' subdir
This commit is contained in:
parent
498d1f043d
commit
a4bc4af418
@ -40,7 +40,7 @@ fi
|
|||||||
echo "Cleaning up in $DBDIR..."
|
echo "Cleaning up in $DBDIR..."
|
||||||
rm -f $DBDIR/[!C]*
|
rm -f $DBDIR/[!C]*
|
||||||
echo "Cleaning up in $REPLDIR..."
|
echo "Cleaning up in $REPLDIR..."
|
||||||
rm -f $REPLDIR/[!C]*
|
rm -rf $REPLDIR/[!C]*
|
||||||
|
|
||||||
echo "Starting master slapd on TCP/IP port $PORT..."
|
echo "Starting master slapd on TCP/IP port $PORT..."
|
||||||
. $CONFFILTER $BACKEND $MONITORDB < $MASTERCONF > $DBCONF
|
. $CONFFILTER $BACKEND $MONITORDB < $MASTERCONF > $DBCONF
|
||||||
@ -65,12 +65,12 @@ for i in 0 1 2 3 4 5; do
|
|||||||
$LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT \
|
$LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT \
|
||||||
'objectclass=*' > /dev/null 2>&1
|
'objectclass=*' > /dev/null 2>&1
|
||||||
RC=$?
|
RC=$?
|
||||||
done
|
|
||||||
if test $RC = 0 ; then
|
if test $RC = 0 ; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
echo "Waiting 5 seconds for slapd to start..."
|
echo "Waiting 5 seconds for slapd to start..."
|
||||||
sleep 5
|
sleep 5
|
||||||
|
done
|
||||||
|
|
||||||
echo "Using ldapsearch to check that slave slapd is running..."
|
echo "Using ldapsearch to check that slave slapd is running..."
|
||||||
for i in 0 1 2 3 4 5; do
|
for i in 0 1 2 3 4 5; do
|
||||||
|
Loading…
Reference in New Issue
Block a user