From 12ad5f81eaf190d687e7ef93c45105126c7d461a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 30 Jan 2006 17:39:10 +0000 Subject: [PATCH] - use %service Changed files: apache-mod_whois.spec -> 1.8 --- apache-mod_whois.spec | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apache-mod_whois.spec b/apache-mod_whois.spec index b35cb15..04c17e0 100644 --- a/apache-mod_whois.spec +++ b/apache-mod_whois.spec @@ -13,6 +13,7 @@ Source1: %{name}.conf URL: http://modwhois.sourceforge.net/ BuildRequires: %{apxs} BuildRequires: apache-devel >= 2.0 +BuildRequires: rpmbuild(macros) >= 1.268 Requires: apache(modules-api) = %apache_modules_api BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -42,15 +43,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/83_mod_%{mod_name}.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 -- 2.44.0