SOURCES: php-fpm.init - always do graceful shutdown

glen glen at pld-linux.org
Sun Nov 16 19:49:07 CET 2008


Author: glen                         Date: Sun Nov 16 18:49:07 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- always do graceful shutdown

---- Files affected:
SOURCES:
   php-fpm.init (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SOURCES/php-fpm.init
diff -u SOURCES/php-fpm.init:1.4 SOURCES/php-fpm.init:1.5
--- SOURCES/php-fpm.init:1.4	Sun Nov 16 19:47:41 2008
+++ SOURCES/php-fpm.init	Sun Nov 16 19:49:02 2008
@@ -36,18 +36,7 @@
 	if [ -f /var/lock/subsys/php-fpm ]; then
 		# Stop daemons.
 		msg_stopping "PHP FastCGI Process Manager"
-		killproc --pidfile $pidfile php-fpm -TERM
-		rm -f /var/lock/subsys/php-fpm
-	else
-		msg_not_running "PHP FastCGI Process Manager"
-	fi
-}
-
-# Gracefully shutting down php_fpm
-quit() {
-	if [ -f /var/lock/subsys/php-fpm ]; then
-		# Stop daemons.
-		msg_stopping "PHP FastCGI Process Manager"
+		# always gracefully shut down php-fpm
 		killproc --pidfile $pidfile php-fpm -QUIT
 		rm -f /var/lock/subsys/php-fpm
 	else
@@ -84,7 +73,7 @@
   start)
   	start
 	;;
-  stop)
+  stop|quit)
   	stop
 	;;
   restart)
@@ -96,9 +85,6 @@
 	;;
   reload|force-reload)
 	reload USR2 7
-	;;
-  quit) # graceful shutdown
-	quit
 	;;
   flush-logs|logrotate)
 	reload USR1 0
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/php-fpm.init?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list