]> git.pld-linux.org Git - packages/apache-mod_vhost_dbi.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_vhost_dbi.spec -> 1.6

apache-mod_vhost_dbi.spec

index 51a0eff07a51ce8045285e5638bede41225bc885..189e6b002cebd51498af0955f1147716d49962db 100644 (file)
@@ -17,6 +17,7 @@ BuildRequires:        autoconf
 BuildRequires: automake
 BuildRequires: libdbi-devel
 BuildRequires: libtool
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: sed >= 4.0
 Requires:      apache(modules-api) = %apache_modules_api
 Requires:      apache-mod_dbi_pool >= 0.4.0
@@ -63,15 +64,11 @@ echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
 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.07702 seconds and 4 git commands to generate.