#endif
}
- if( slapd_gentle_shutdown != 2 )
+ if( slapd_gentle_shutdown != 2 ) {
close_listeners ( 0 );
+ }
+
free ( slap_listeners );
slap_listeners = NULL;
+ if( !slapd_gentle_shutdown ) {
+ connections_shutdown();
+ }
+
#ifdef NEW_LOGGING
LDAP_LOG( CONNECTION, CRIT,
"slapd_daemon_task: shutdown waiting for %d threads to terminate.\n",
RC=$?
if test $RC != 0 ; then
echo "ldapadd failed ($RC)!"
- kill -INT $PID $SLAVEPID
+ kill -HUP $PID $SLAVEPID
kill -KILL $SLURPPID
exit $RC
fi
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
- kill -INT $PID $SLAVEPID
+ kill -HUP $PID $SLAVEPID
kill -KILL $SLURPPID
exit $RC
fi
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
- kill -INT $PID $SLAVEPID
+ kill -HUP $PID $SLAVEPID
kill -KILL $SLURPPID
exit $RC
fi
-kill -INT $PID $SLAVEPID
+kill -HUP $PID $SLAVEPID
kill -KILL $SLURPPID
SEARCHOUT=$MASTEROUT
RC=$?
if test $RC != 0 ; then
echo "ldapadd failed ($RC)!"
- kill -INT $PID $SLAVEPID
+ kill -HUP $PID $SLAVEPID
kill -KILL $SLURPPID
exit $RC
fi
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
- kill -INT $PID $SLAVEPID
+ kill -HUP $PID $SLAVEPID
kill -KILL $SLURPPID
exit $RC
fi
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
- kill -INT $PID $SLAVEPID
+ kill -HUP $PID $SLAVEPID
kill -KILL $SLURPPID
exit $RC
fi
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
- kill -INT $PID $SLAVEPID
+ kill -HUP $PID $SLAVEPID
kill -KILL $SLURPPID
exit $RC
fi
-kill -INT $PID $SLAVEPID
+kill -HUP $PID $SLAVEPID
kill -KILL $SLURPPID
SEARCHOUT=$SUBMASTEROUT