From faf8eef0b649401c5ceaaed5298f3a85ad5e1871 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 1/1] - use %service Changed files: apache-mod_log_sql.spec -> 1.17 --- apache-mod_log_sql.spec | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apache-mod_log_sql.spec b/apache-mod_log_sql.spec index cca37cd..a3110a0 100644 --- a/apache-mod_log_sql.spec +++ b/apache-mod_log_sql.spec @@ -22,6 +22,7 @@ BuildRequires: automake BuildRequires: libdbi-devel >= 0.7.0 BuildRequires: libtool BuildRequires: mysql-devel >= 3.23.30 +BuildRequires: rpmbuild(macros) >= 1.268 BuildRequires: sed >= 4.0 Requires: apache(modules-api) = %apache_modules_api BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -68,15 +69,11 @@ echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \ 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