]> git.pld-linux.org Git - packages/apache-mod_jk.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 30 Jan 2006 17:39:10 +0000 (17:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_jk.spec -> 1.37

apache-mod_jk.spec

index a53bf6c20a3029e791907b2f3d6eb349fcffe0af..840586e4558a9c2de844d2d677dd976d313f0907 100644 (file)
@@ -21,7 +21,7 @@ BuildRequires:        autoconf
 BuildRequires: automake
 BuildRequires: libtool
 BuildRequires: perl-base
-BuildRequires: rpmbuild(macros) >= 1.120
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      apache(modules-api) = %{apache_modules_api}
 Obsoletes:     jakarta-tomcat-connectors-jk
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -74,15 +74,11 @@ if [ ! -f /var/log/httpd/mod_jk.log ]; then
        touch /var/log/httpd/mod_jk.log
        chown root:logs /var/log/httpd/mod_jk.log
 fi
-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
This page took 0.065764 seconds and 4 git commands to generate.