Skip to content
Snippets Groups Projects
Commit 777cf6e3 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

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.
parent abce5abf
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment