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

apache1-mod_ometer.spec

index 710608c..262f0b4 100644 (file)
@@ -21,8 +21,9 @@ BuildRequires:        %{apxs}
 BuildRequires: apache1-devel >= 1.3.33-2
 BuildRequires: gd-devel
 BuildRequires: libjpeg-devel
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      apache1 >= 1.3.33-2
-Obsoletes:     apache-mod_%{mod_name} <= 1.2.0
+Obsoletes:     apache-mod_ometer <= 1.2.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
@@ -71,15 +72,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
 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
 
 %files
This page took 0.088939 seconds and 4 git commands to generate.