From 1bfb51ce13ecb404358a4c61a55b30e702f2496a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 2 Aug 2012 02:57:06 +0300 Subject: [PATCH] fixing fpm scriptlets --- php.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/php.spec b/php.spec index df2438d..9621f48 100644 --- a/php.spec +++ b/php.spec @@ -2560,13 +2560,13 @@ fi %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http %post fpm -/sbin/chkconfig --add php-fpm -%service php-fpm restart +/sbin/chkconfig --add %{name}-fpm +%service %{name}-fpm restart %preun fpm if [ "$1" = 0 ]; then - %service php-fpm stop - /sbin/chkconfig --del php-fpm + %service %{name}-fpm stop + /sbin/chkconfig --del %{name}-fpm fi %postun fpm -- 2.44.0