From: Elan Ruusamäe Date: Mon, 30 Jan 2006 17:39:10 +0000 (+0000) Subject: - use %service X-Git-Tag: AC-STABLE~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fapache-mod_vhost_mysql.git;a=commitdiff_plain;h=a40667401c574521f2ec0c0d04e170531f96d448 - use %service Changed files: apache-mod_vhost_mysql.spec -> 1.13 --- diff --git a/apache-mod_vhost_mysql.spec b/apache-mod_vhost_mysql.spec index 8d9d5a0..adb283d 100644 --- a/apache-mod_vhost_mysql.spec +++ b/apache-mod_vhost_mysql.spec @@ -14,6 +14,7 @@ BuildRequires: %{apxs} BuildRequires: apache-devel >= 2.0 BuildRequires: db-devel >= 4.2.52 BuildRequires: mysql-devel +BuildRequires: rpmbuild(macros) >= 1.268 Requires: apache(modules-api) = %apache_modules_api BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -47,15 +48,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/21_vhost_mysql.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