SOURCES: php-fcgi.init - sleep 10 seconds before killing old proce...

glen glen at pld-linux.org
Thu Dec 14 20:08:44 CET 2006


Author: glen                         Date: Thu Dec 14 19:08:44 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- sleep 10 seconds before killing old process, should prevent process being killed in the middle of request processing

---- Files affected:
SOURCES:
   php-fcgi.init (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SOURCES/php-fcgi.init
diff -u SOURCES/php-fcgi.init:1.13 SOURCES/php-fcgi.init:1.14
--- SOURCES/php-fcgi.init:1.13	Thu Dec 14 19:52:48 2006
+++ SOURCES/php-fcgi.init	Thu Dec 14 20:08:39 2006
@@ -135,6 +135,10 @@
 			# to prevent killing the newly spawned process we restore pid of old fcgi
 			newpid=$(cat /var/run/php-fcgi.pid)
 			echo "$oldpid" > /var/run/php-fcgi.pid
+			sleep=10
+			show "Waiting %d seconds before killing old process" $sleep
+			sleep $sleep
+			ok
 		fi
 	fi
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/php-fcgi.init?r1=1.13&r2=1.14&f=u



More information about the pld-cvs-commit mailing list