Diff for /tests/scripts/test017-syncreplication-refresh between versions 1.12 and 1.13

version 1.12, 2003/10/13 08:14:05 version 1.13, 2003/10/19 03:46:56
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
 # $OpenLDAP: pkg/ldap/tests/scripts/test017-syncreplication-refresh,v 1.11 2003/09/22 22:11:46 jongchoi Exp $  # $OpenLDAP: pkg/ldap/tests/scripts/test017-syncreplication-refresh,v 1.12 2003/10/13 08:14:05 hyc Exp $
   
 SRCDIR="."  SRCDIR="."
 if test $# -ge 1 ; then  if test $# -ge 1 ; then
Line 75  fi Line 75  fi
 echo "Starting slave slapd on TCP/IP port $R1SLAVEPORT..."  echo "Starting slave slapd on TCP/IP port $R1SLAVEPORT..."
 . $CONFFILTER $BACKEND $MONITORDB < $R1SRSLAVECONF > $R1REPLCONF  . $CONFFILTER $BACKEND $MONITORDB < $R1SRSLAVECONF > $R1REPLCONF
 $SLAPD -f $R1REPLCONF -h $R1SLAVEURI -d $LVL $TIMING > $R1SLAVELOG 2>&1 &  $SLAPD -f $R1REPLCONF -h $R1SLAVEURI -d $LVL $TIMING > $R1SLAVELOG 2>&1 &
 R1SLAVEPID=$!  SLAVEPID=$!
 if test $WAIT != 0 ; then  if test $WAIT != 0 ; then
     echo SLAVEPID $R1SLAVEPID      echo SLAVEPID $SLAVEPID
     read foo      read foo
 fi  fi
   
Line 105  $LDAPADD -D "$MANAGERDN" -h $LOCALHOST - Line 105  $LDAPADD -D "$MANAGERDN" -h $LOCALHOST -
 RC=$?  RC=$?
 if test $RC != 0 ; then  if test $RC != 0 ; then
         echo "ldapadd failed ($RC)!"          echo "ldapadd failed ($RC)!"
         kill -HUP $PID $R1SLAVEPID          kill -HUP $PID $SLAVEPID
         exit $RC          exit $RC
 fi  fi
   
Line 201  RC=$? Line 201  RC=$?
   
 if test $RC != 0 ; then  if test $RC != 0 ; then
         echo "ldapsearch failed at master ($RC)!"          echo "ldapsearch failed at master ($RC)!"
         kill -HUP $PID $R1SLAVEPID          kill -HUP $PID $SLAVEPID
         exit $RC          exit $RC
 fi  fi
   
Line 212  RC=$? Line 212  RC=$?
   
 if test $RC != 0 ; then  if test $RC != 0 ; then
         echo "ldapsearch failed at slave ($RC)!"          echo "ldapsearch failed at slave ($RC)!"
         kill -HUP $PID $R1SLAVEPID          kill -HUP $PID $SLAVEPID
         exit $RC          exit $RC
 fi  fi
   
 kill -HUP $PID $R1SLAVEPID  kill -HUP $PID $SLAVEPID
   
 SEARCHOUT=$MASTEROUT  SEARCHOUT=$MASTEROUT
 LDIF=$R1SLAVEOUT  LDIF=$R1SLAVEOUT

Removed from v.1.12  
changed lines
  Added in v.1.13


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org