]> git.pld-linux.org Git - packages/apache1-mod_access_identd.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 2 Apr 2006 14:19:27 +0000 (14:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-mod_access_identd.spec -> 1.7

apache1-mod_access_identd.spec

index 6cb307efca2400c5c756e141cfb3dfe21a34eb88..e0afa10721639a026032fb2a788273eff339f948 100644 (file)
@@ -12,6 +12,7 @@ Source0:      http://meepzor.com/packages/mod_%{mod_name}/mod_%{mod_name}-%{version}.
 Source1:       http://meepzor.com/packages/mod_access_identd/LICENCE.txt
 URL:           http://meepzor.com/packages/mod_access_identd/
 BuildRequires: apache1-devel >= 1.3.33-2
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      apache1 >= 1.3.33-2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -54,15 +55,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
 
 %files
This page took 0.095394 seconds and 4 git commands to generate.