]> git.pld-linux.org Git - packages/WebChess.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 19 Mar 2006 17:50:57 +0000 (17:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    WebChess.spec -> 1.8

WebChess.spec

index f42759f972e24c7faf04b0ae1bd133589a3fc4f0..8edbf2471cf7d5cc16c1d15f4ad64ec2a8b09078 100644 (file)
@@ -14,6 +14,7 @@ Requires:     php
 Requires:      php-mysql
 Requires:      php-pcre
 Requires:      webserver
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -57,9 +58,7 @@ if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*%{name}.conf" /etc/httpd
 elif [ -d /etc/httpd/httpd.conf ]; then
        ln -sf /etc/httpd/%{name}.conf /etc/httpd/httpd.conf/99_%{name}.conf
 fi
-if [ -f /var/lock/subsys/httpd ]; then
-       /usr/sbin/apachectl restart 1>&2
-fi
+%service -q httpd reload
 
 %preun
 if [ "$1" = "0" ]; then
@@ -70,9 +69,7 @@ if [ "$1" = "0" ]; then
                grep -v "^Include.*%{name}.conf" /etc/httpd/httpd.conf > \
                        /etc/httpd/httpd.conf.tmp
                mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
-               if [ -f /var/lock/subsys/httpd ]; then
-                       /usr/sbin/apachectl restart 1>&2
-               fi
+               %service -q httpd reload
        fi
 fi
 
This page took 0.091856 seconds and 4 git commands to generate.