From bbabad9e6bd5c29b1123d4faf42e62e7c817f45c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 19 Mar 2013 18:55:26 +0200 Subject: [PATCH] %php_webserver_restart: respect php_suffix when restarting --- rpm.macros | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpm.macros b/rpm.macros index d7063b0..bc2f463 100644 --- a/rpm.macros +++ b/rpm.macros @@ -958,8 +958,8 @@ if [ -x /etc/rc.d/init.d/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 \ +if [ -x /etc/rc.d/init.d/%{php_name}-fpm ]; then \ + %service -q %{php_name}-fpm restart \ fi \ %{nil} -- 2.44.0