From: Elan Ruusamäe Date: Fri, 14 Apr 2006 16:50:13 +0000 (+0000) Subject: - use %service X-Git-Tag: auto/ac/apache-mod_fastcgi-2_4_2-9~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fapache1-mod_fastcgi.git;a=commitdiff_plain;h=40cf7155bbe8f89a57d58288e1f75fa9d6c8c0a6 - use %service Changed files: apache1-mod_fastcgi.spec -> 1.46 --- diff --git a/apache1-mod_fastcgi.spec b/apache1-mod_fastcgi.spec index c44a749..dba35ca 100644 --- a/apache1-mod_fastcgi.spec +++ b/apache1-mod_fastcgi.spec @@ -18,6 +18,7 @@ URL: http://www.FastCGI.com/ BuildRequires: %{apxs} BuildRequires: apache1-devel >= 1.3.33-2 BuildRequires: libtool +BuildRequires: rpmbuild(macros) >= 1.268 Requires: apache1 >= 1.3.33-2 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -71,17 +72,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 -else - echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon." -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