have "apachectl graceful" start httpd if not running, per man page
This commit is contained in:
parent
a4064261ea
commit
37b82598ea
@ -1,11 +1,13 @@
|
||||
|
||||
Make apachectl run via systemctl.
|
||||
|
||||
Note: "apachectl graceful" is documented to start httpd if not running.
|
||||
|
||||
Upstream-Status: vendor specific patch
|
||||
|
||||
diff --git a/support/apachectl.in b/support/apachectl.in
|
||||
index c6ac3ea..2599386 100644
|
||||
--- a/support/apachectl.in
|
||||
+++ b/support/apachectl.in
|
||||
@@ -100,9 +100,24 @@ fi
|
||||
--- httpd-2.4.18/support/apachectl.in.apctlsystemd
|
||||
+++ httpd-2.4.18/support/apachectl.in
|
||||
@@ -100,9 +100,28 @@ fi
|
||||
ERROR=$?
|
||||
}
|
||||
|
||||
@ -24,7 +26,11 @@ index c6ac3ea..2599386 100644
|
||||
+ ERROR=$?
|
||||
+ ;;
|
||||
+graceful)
|
||||
+ /usr/bin/systemctl reload httpd.service
|
||||
+ if /usr/bin/systemctl -q is-active httpd.service; then
|
||||
+ /usr/bin/systemctl reload httpd.service
|
||||
+ else
|
||||
+ /usr/bin/systemctl start httpd.service
|
||||
+ fi
|
||||
+ ERROR=$?
|
||||
+ ;;
|
||||
+graceful-stop)
|
||||
@ -32,7 +38,7 @@ index c6ac3ea..2599386 100644
|
||||
ERROR=$?
|
||||
;;
|
||||
startssl|sslstart|start-SSL)
|
||||
@@ -114,10 +129,6 @@ startssl|sslstart|start-SSL)
|
||||
@@ -114,10 +133,6 @@ startssl|sslstart|start-SSL)
|
||||
configtest)
|
||||
testconfig
|
||||
;;
|
||||
|
@ -8,7 +8,7 @@
|
||||
Summary: Apache HTTP Server
|
||||
Name: httpd
|
||||
Version: 2.4.18
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
URL: http://httpd.apache.org/
|
||||
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
|
||||
Source1: index.html
|
||||
@ -672,6 +672,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_rpmconfigdir}/macros.d/macros.httpd
|
||||
|
||||
%changelog
|
||||
* Thu Apr 7 2016 Joe Orton <jorton@redhat.com> - 2.4.18-6
|
||||
- have "apachectl graceful" start httpd if not running, per man page
|
||||
|
||||
* Wed Apr 6 2016 Joe Orton <jorton@redhat.com> - 2.4.18-5
|
||||
- use redirects for lang-specific /manual/ URLs
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user