Add missing 'kill -HUP $KILLPIDS' statements before exit.

Obey ./run -k ($KILLSERVERS = no).
This commit is contained in:
Hallvard Furuseth 2005-09-26 14:56:12 +00:00
parent 460687589a
commit 1732b14755
2 changed files with 7 additions and 3 deletions

View File

@ -52,7 +52,7 @@ done
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
kill -HUP $PID
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
@ -65,7 +65,7 @@ $LDAPMODRDN -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
RC=$?
if test $RC != 0 ; then
echo "ldapmodrdn failed ($RC)!"
kill -HUP $PID
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
@ -76,7 +76,7 @@ $LDAPMODRDN -D "$MANAGERDN" -r -h $LOCALHOST -p $PORT1 -w $PASSWD >> \
RC=$?
if test $RC != 0 ; then
echo "ldapmodrdn failed ($RC)!"
kill -HUP $PID
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
@ -200,6 +200,7 @@ RC=$?
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
@ -214,6 +215,7 @@ $CMP $SEARCHFLT $LDIFFLT > $CMPOUT
if test $? != 0 ; then
echo "comparison failed - modrdn operations did not complete correctly"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit 1
fi

View File

@ -107,6 +107,7 @@ $CMP $SEARCHOUT $SEARCHOUT > $CMPOUT
if test $? != 0 ; then
echo "comparison failed - modify operations did not complete correctly"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit 1
fi
@ -139,6 +140,7 @@ fi
RC=`grep -c foster $SEARCHFLT`
if test $RC != 0 ; then
echo "dependent modify failed - dependents were not deleted"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit 1
fi