- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 14 Apr 2006 16:50:13 +0000 (16:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-mod_log_sql.spec -> 1.12

apache1-mod_log_sql.spec

index 908a2db..7b036a7 100644 (file)
@@ -23,6 +23,7 @@ BuildRequires:        automake
 BuildRequires: libdbi-devel >= 0.7.0
 BuildRequires: libtool
 BuildRequires: mysql-devel >= 3.23.30
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(triggerpostun):       %{apxs}
 Requires:      apache1 >= 1.3.33-2
 Obsoletes:     apache-mod_log_sql <= 1.13
@@ -67,15 +68,11 @@ echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/apache ]; then
-       /etc/rc.d/init.d/apache restart 1>&2
-fi
+%service -q apache restart
 
 %postun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
+       %service -q apache restart
 fi
 
 %triggerpostun -- apache1-mod_%{mod_name} < 1.99-2.1
This page took 0.154542 seconds and 4 git commands to generate.