Author: glen                         Date: Wed Nov 14 13:23:00 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- check for existence of php-fcgi binary

---- Files affected:
SOURCES:
   php-fcgi.init (1.22 -> 1.23) 

---- Diffs:

================================================================
Index: SOURCES/php-fcgi.init
diff -u SOURCES/php-fcgi.init:1.22 SOURCES/php-fcgi.init:1.23
--- SOURCES/php-fcgi.init:1.22  Mon Nov 12 20:32:13 2007
+++ SOURCES/php-fcgi.init       Wed Nov 14 14:22:55 2007
@@ -44,6 +44,11 @@
 checkconfig() {
        local prog=${0##*/}
 
+       if [ ! -x "$PHP_FCGI_BINARY" ]; then
+               echo >&2 "$prog: PHP FCGI binary '$PHP_FCGI_BINARY' doesn't 
exist"
+               exit 1
+       fi
+
        if [ -n "$SPAWN_PORT" -a -n "$SPAWN_SOCKET" ]; then
                echo >&2 "$prog: port and socket can not be used simulatenously"
                exit 1
================================================================

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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to