SOURCES: ldap.init - send only concrete SIGNAL to slapd to allow i...

glen glen at pld-linux.org
Thu Jul 20 17:20:52 CEST 2006


Author: glen                         Date: Thu Jul 20 15:20:52 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- send only concrete SIGNAL to slapd to allow it shutdown cleanly
  (by default killproc will send SIGTERM and in ~4 sec SIGKILL!)

---- Files affected:
SOURCES:
   ldap.init (1.26 -> 1.27) 

---- Diffs:

================================================================
Index: SOURCES/ldap.init
diff -u SOURCES/ldap.init:1.26 SOURCES/ldap.init:1.27
--- SOURCES/ldap.init:1.26	Thu Dec  8 02:02:49 2005
+++ SOURCES/ldap.init	Thu Jul 20 17:20:47 2006
@@ -74,7 +74,7 @@
   stop)
 	if [ -f /var/lock/subsys/ldap ]; then
 		msg_stopping "OpenLDAP"
-		killproc slapd
+		killproc --waitforname slapd --waitfortime 300 slapd -TERM
 		if grep -q '^replogfile' /etc/openldap/slapd.conf; then
 			msg_stopping "OpenLDAP Update Replication Daemon"
 			killproc slurpd
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/ldap.init?r1=1.26&r2=1.27&f=u



More information about the pld-cvs-commit mailing list