]> git.pld-linux.org Git - packages/apache-mod_cfg_ldap.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_cfg_ldap.spec -> 1.14

apache-mod_cfg_ldap.spec

index bae63d2c2beb04caf28793a611713495834c5099..8b1c95bcfa49b5e9165750fe76f11de2634fc3d6 100644 (file)
@@ -15,6 +15,7 @@ BuildRequires:        %{apxs}
 BuildRequires: apache-devel >= 2.0
 BuildRequires: db-devel >= 4.2.52
 BuildRequires: openldap-devel >= 2.3.0
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      apache(modules-api) = %apache_modules_api
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -48,15 +49,11 @@ install cfg_ldap.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/85_mod_cfg_ldap.c
 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
 
 %postun
 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.080105 seconds and 4 git commands to generate.