From 3f5ebb4eae523cd2bd25ebe3eedfe09df5a2715b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 14 Apr 2006 17:03:25 +0000 Subject: [PATCH] - use %service Changed files: apache1-mod_security.spec -> 1.9 --- apache1-mod_security.spec | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apache1-mod_security.spec b/apache1-mod_security.spec index c4f5948..868ddd8 100644 --- a/apache1-mod_security.spec +++ b/apache1-mod_security.spec @@ -11,6 +11,7 @@ Source0: http://www.modsecurity.org/download/modsecurity-%{version}.tar.gz # Source0-md5: 0dd48656e451c711358c097dc80e0369 URL: http://www.modsecurity.org/ 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) @@ -48,15 +49,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 -- 2.44.0