Author: glen                         Date: Tue Mar 14 16:37:04 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- allow different PHP FCGI binaries

---- Files affected:
SOURCES:
   php-fcgi.init (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SOURCES/php-fcgi.init
diff -u SOURCES/php-fcgi.init:1.5 SOURCES/php-fcgi.init:1.6
--- SOURCES/php-fcgi.init:1.5   Fri Jan 14 22:28:11 2005
+++ SOURCES/php-fcgi.init       Tue Mar 14 17:36:59 2006
@@ -26,9 +26,12 @@
        exit 0
 fi
 
-if test x$PHP_FCGI_CHILDREN = x; then
+if [ -z "$PHP_FCGI_CHILDREN" ]; then
        PHP_FCGI_CHILDREN=5
 fi
+if [ -z "$PHP_FCGI_BINARY" ]; then
+       PHP_FCGI_BINARY=/usr/bin/php.fcgi
+fi
 
 RETVAL=0
 # See how we were called.
@@ -40,7 +43,7 @@
                export FCGI_WEB_SERVER_ADDRS
 
                msg_starting "PHP FastCGI"
-               daemon /usr/sbin/spawn-fcgi $SPAWNARGS -f /usr/bin/php.fcgi -C 
$PHP_FCGI_CHILDREN
+               daemon /usr/sbin/spawn-fcgi $SPAWNARGS -f $PHP_FCGI_BINARY -C 
$PHP_FCGI_CHILDREN
 
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/php-fcgi
================================================================

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

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to