From e53d5b62fd48e46bb0215f732956c22ce3673f44 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_python.spec -> 1.76 --- apache-mod_python.spec | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/apache-mod_python.spec b/apache-mod_python.spec index 9fead67..9e7fe1b 100644 --- a/apache-mod_python.spec +++ b/apache-mod_python.spec @@ -38,7 +38,7 @@ BuildRequires: flex >= 2.5.31 BuildRequires: python BuildRequires: python-devel >= 2.2 BuildRequires: rpm-pythonprov -BuildRequires: rpmbuild(macros) >= 1.219 +BuildRequires: rpmbuild(macros) >= 1.268 Requires: apache(modules-api) = %apache_modules_api Requires: apr >= 1:1.0.0 # apache.py uses pdb module @@ -157,15 +157,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/60_mod_python.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