]> git.pld-linux.org Git - packages/apache-mod_dbi_pool.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_dbi_pool.spec -> 1.11

apache-mod_dbi_pool.spec

index b2d23030e4ae02a09ca640b6bb6f02b86d9a6be5..63e53e2197bd6b6777220ac4d7469ca52e6bb97b 100644 (file)
@@ -17,6 +17,7 @@ BuildRequires:        automake
 BuildRequires: libdbi-devel >= 0.7.2
 BuildRequires: libtool
 BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: sed >= 4.0
 Requires:      apache(modules-api) = %apache_modules_api
 Requires:      libdbi >= 0.7.2
@@ -80,15 +81,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.086538 seconds and 4 git commands to generate.