Use KILL to kill slurpd.

Not sure why its not shutting down with -INT under FreeBSD 4,
but I have no time to figure this out.
This commit is contained in:
Kurt Zeilenga 2001-05-04 22:03:45 +00:00
parent abce5abf34
commit 777cf6e3a3

View File

@ -76,7 +76,8 @@ $LDAPADD -D "$MANAGERDN" -h localhost -p $PORT -w $PASSWD < \
RC=$?
if test $RC != 0 ; then
echo "ldapadd failed ($RC)!"
kill -HUP $PID $SLAVEPID $SLURPPID
kill -INT $PID $SLAVEPID
kill -KILL $SLURPPID
exit $RC
fi
@ -151,7 +152,8 @@ $LDAPSEARCH -S "" -b "$BASEDN" -h localhost -p $PORT \
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
kill -INT $PID $SLAVEPID $SLURPPID
kill -INT $PID $SLAVEPID
kill -KILL $SLURPPID
exit $RC
fi
@ -161,11 +163,13 @@ $LDAPSEARCH -S "" -b "$BASEDN" -h localhost -p $SLAVEPORT \
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
kill -INT $PID $SLAVEPID $SLURPPID
kill -INT $PID $SLAVEPID
kill -KILL $SLURPPID
exit $RC
fi
kill -INT $PID $SLAVEPID $SLURPPID
kill -INT $PID $SLAVEPID
kill -KILL $SLURPPID
SEARCHOUT=$MASTEROUT
LDIF=$SLAVEOUT