]> git.pld-linux.org Git - packages/apache-mod_proxy_html.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 30 Jan 2006 17:39:10 +0000 (17:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_proxy_html.spec -> 1.13

apache-mod_proxy_html.spec

index 049002eedc209d5d1576eb6598a29843d52e5d7e..d4c88997aef72e6a0acb37dacf179309f5c3bfee 100644 (file)
@@ -18,6 +18,7 @@ BuildRequires:        apr-devel >= 1:0.9.4-1
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: libxml2-devel >= 2.5.10
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      apache(modules-api) = %apache_modules_api
 Requires:      apache-mod_proxy >= 2.0.44
 Requires:      libxml2 >= 2.5.10
@@ -60,15 +61,11 @@ EOF
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
-fi
+%service -q httpd restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
-       fi
+       %service -q httpd restart
 fi
 
 %files
This page took 0.126748 seconds and 4 git commands to generate.