SOURCES: php-fcgi.init - write pid for (more) accurate killing and...
glen
glen at pld-linux.org
Tue Mar 14 17:37:43 CET 2006
Author: glen Date: Tue Mar 14 16:37:43 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- write pid for (more) accurate killing and status
---- Files affected:
SOURCES:
php-fcgi.init (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SOURCES/php-fcgi.init
diff -u SOURCES/php-fcgi.init:1.6 SOURCES/php-fcgi.init:1.7
--- SOURCES/php-fcgi.init:1.6 Tue Mar 14 17:36:59 2006
+++ SOURCES/php-fcgi.init Tue Mar 14 17:37:38 2006
@@ -43,7 +43,7 @@
export FCGI_WEB_SERVER_ADDRS
msg_starting "PHP FastCGI"
- daemon /usr/sbin/spawn-fcgi $SPAWNARGS -f $PHP_FCGI_BINARY -C $PHP_FCGI_CHILDREN
+ daemon /usr/sbin/spawn-fcgi -P /var/run/php-fcgi.pid $SPAWNARGS -f $PHP_FCGI_BINARY -C $PHP_FCGI_CHILDREN
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/php-fcgi
@@ -55,7 +55,7 @@
# Stop daemons.
if [ -f /var/lock/subsys/php-fcgi ]; then
msg_stopping "PHP FastCGI"
- killproc php.fcgi
+ killproc --pidfile php-fcgi.pid php.fcgi
rm -f /var/lock/subsys/php-fcgi >/dev/null 2>&1
else
msg_not_running "PHP FastCGI"
@@ -67,7 +67,7 @@
exit $?
;;
status)
- status php-fcgi
+ status php-fcgi $PHP_FCGI_BINARY
exit $?
;;
reload|force-reload)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/php-fcgi.init?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list