mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Add missing 'kill -HUP $KILLPIDS' statements before exit.
Obey ./run -k ($KILLSERVERS = no).
This commit is contained in:
parent
460687589a
commit
1732b14755
@ -52,7 +52,7 @@ done
|
|||||||
|
|
||||||
if test $RC != 0 ; then
|
if test $RC != 0 ; then
|
||||||
echo "ldapsearch failed ($RC)!"
|
echo "ldapsearch failed ($RC)!"
|
||||||
kill -HUP $PID
|
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ $LDAPMODRDN -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
|
|||||||
RC=$?
|
RC=$?
|
||||||
if test $RC != 0 ; then
|
if test $RC != 0 ; then
|
||||||
echo "ldapmodrdn failed ($RC)!"
|
echo "ldapmodrdn failed ($RC)!"
|
||||||
kill -HUP $PID
|
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ $LDAPMODRDN -D "$MANAGERDN" -r -h $LOCALHOST -p $PORT1 -w $PASSWD >> \
|
|||||||
RC=$?
|
RC=$?
|
||||||
if test $RC != 0 ; then
|
if test $RC != 0 ; then
|
||||||
echo "ldapmodrdn failed ($RC)!"
|
echo "ldapmodrdn failed ($RC)!"
|
||||||
kill -HUP $PID
|
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -200,6 +200,7 @@ RC=$?
|
|||||||
|
|
||||||
if test $RC != 0 ; then
|
if test $RC != 0 ; then
|
||||||
echo "ldapsearch failed ($RC)!"
|
echo "ldapsearch failed ($RC)!"
|
||||||
|
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -214,6 +215,7 @@ $CMP $SEARCHFLT $LDIFFLT > $CMPOUT
|
|||||||
|
|
||||||
if test $? != 0 ; then
|
if test $? != 0 ; then
|
||||||
echo "comparison failed - modrdn operations did not complete correctly"
|
echo "comparison failed - modrdn operations did not complete correctly"
|
||||||
|
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -107,6 +107,7 @@ $CMP $SEARCHOUT $SEARCHOUT > $CMPOUT
|
|||||||
|
|
||||||
if test $? != 0 ; then
|
if test $? != 0 ; then
|
||||||
echo "comparison failed - modify operations did not complete correctly"
|
echo "comparison failed - modify operations did not complete correctly"
|
||||||
|
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -139,6 +140,7 @@ fi
|
|||||||
RC=`grep -c foster $SEARCHFLT`
|
RC=`grep -c foster $SEARCHFLT`
|
||||||
if test $RC != 0 ; then
|
if test $RC != 0 ; then
|
||||||
echo "dependent modify failed - dependents were not deleted"
|
echo "dependent modify failed - dependents were not deleted"
|
||||||
|
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user