Not sure why its not shutting down with -INT under FreeBSD 4,
but I have no time to figure this out.
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
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
- kill -INT $PID $SLAVEPID $SLURPPID
+ kill -INT $PID $SLAVEPID
+ kill -KILL $SLURPPID
exit $RC
fi
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