if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
echo "Using ldapsearch to check that slave slapd is running..."
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 $SLAVEPORT \
'objectclass=*' > /dev/null 2>&1
RC=$?
if test $RC = 0 ; then
RC=$?
if test $RC != 0 ; then
echo "ldapadd failed ($RC)!"
- kill -INT $PID $SLAVEPID
- kill -KILL $SLURPPID
+ kill -HUP $PID $SLAVEPID
+ kill -HUP $SLURPPID
exit $RC
fi
changetype: modify
add: drink
drink: Orange Juice
+-
+delete: sn
+sn: Jones
+-
+add: sn
+sn: Jones
dn: cn=Bjorn Jensen, ou=Information Technology Division, ou=People, o=University of Michigan, c=US
changetype: modify
drink: Mad Dog 20/20
dn: cn=ITD Staff,ou=Groups,o=University of Michigan,c=US
+changetype: modify
delete: member
member: cn=James A Jones 2, ou=Information Technology Division, ou=People, o=University of Michigan, c=US
member: cn=Bjorn Jensen, ou=Information Technology Division, ou=People, o=University of Michigan, c=US
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
- kill -INT $PID $SLAVEPID
- kill -KILL $SLURPPID
+ kill -HUP $PID $SLAVEPID
+ kill -HUP $SLURPPID
exit $RC
fi
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
- kill -INT $PID $SLAVEPID
- kill -KILL $SLURPPID
+ kill -HUP $PID $SLAVEPID
+ kill -HUP $SLURPPID
exit $RC
fi
-kill -INT $PID $SLAVEPID
-kill -KILL $SLURPPID
+kill -HUP $PID $SLAVEPID
+kill -HUP $SLURPPID
SEARCHOUT=$MASTEROUT
LDIF=$SLAVEOUT