From 8e2cfc3652c924a35eaba823e60af3bda6c1f1e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 12 Jun 2009 07:33:41 +0000 Subject: [PATCH] - restart php-fpm if installed Changed files: rpm.macros -> 1.518 --- rpm.macros | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rpm.macros b/rpm.macros index 8923979..c728e36 100644 --- a/rpm.macros +++ b/rpm.macros @@ -740,19 +740,22 @@ fi; \ %php_webserver_restart \ [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart \ [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart \ -if [ -f /etc/rc.d/init.d/php-fcgi ]; then \ +if [ -x /etc/rc.d/init.d/php-fcgi ]; then \ PHP_FCGI_BINARY=; . /etc/sysconfig/php-fcgi 2>/dev/null \ if [[ ${PHP_FCGI_BINARY:-php.fcgi} = *php.fcgi* ]]; then \ %service -q php-fcgi restart \ fi \ fi \ +if [ -x /etc/rc.d/init.d/php-fpm ]; then \ + %service -q php-fpm restart \ +fi \ %{nil} # for using php post scripts. for PHP >= 4.0 && PHP < 5.0 %php4_webserver_restart \ [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart \ [ ! -f /etc/httpd/conf.d/??_mod_php4.conf ] || %service -q httpd restart \ -if [ -f /etc/rc.d/init.d/php-fcgi ]; then \ +if [ -x /etc/rc.d/init.d/php-fcgi ]; then \ PHP_FCGI_BINARY=; . /etc/sysconfig/php-fcgi 2>/dev/null \ if [[ ${PHP_FCGI_BINARY:-php.fcgi} = *php4.fcgi* ]]; then \ %service -q php-fcgi restart \ -- 2.44.0