From 774081d90a9d4ba2e94e9dc3c169d01fa962ae4e 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_clamav.spec -> 1.13 --- apache-mod_clamav.spec | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apache-mod_clamav.spec b/apache-mod_clamav.spec index 8601e9f..3bafcbf 100644 --- a/apache-mod_clamav.spec +++ b/apache-mod_clamav.spec @@ -22,6 +22,7 @@ BuildRequires: autoconf BuildRequires: automake BuildRequires: clamav-devel BuildRequires: libtool +BuildRequires: rpmbuild(macros) >= 1.268 Requires: apache(modules-api) = %apache_modules_api Requires: apache-mod_proxy Requires: clamav @@ -66,15 +67,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/32_mod_clamav.conf 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 %preun 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.43.0