# 2008-03-11 Herbert Straub # http://www.linuxhacker.at # See # http://www.linuxhacker.at/bugs/centos-5.1-ldap-server-stop-problem --- /etc/init.d/ldap.ORIG 2008-03-11 22:01:30.000000000 +0100 +++ /etc/init.d/ldap 2008-03-11 22:02:15.000000000 +0100 @@ -19,6 +19,8 @@ [ ${NETWORKING} = "no" ] && exit 1 fi +STOP_DELAY=10 + # Source an auxiliary options file if we have one, and pick up OPTIONS, # SLAPD_OPTIONS, SLURPD_OPTIONS, SLAPD_LDAPS, SLAPD_LDAPI, and maybe # KRB5_KTNAME. @@ -180,7 +182,7 @@ # Stop daemons. prog=`basename ${slapd}` echo -n $"Stopping $prog: " - killproc ${slapd} + killproc -d $STOP_DELAY ${slapd} RETVAL=$? echo if [ $RETVAL -eq 0 ]; then