use KillMode=mixed in httpd.service (#1135122)

This commit is contained in:
Jan Kaluza 2014-09-01 09:32:54 +02:00
parent 92ee9cf626
commit 36930381bc
2 changed files with 7 additions and 8 deletions

View File

@ -24,13 +24,9 @@ Environment=LANG=C
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
ExecStop=/bin/kill -WINCH ${MAINPID} # Send SIGWINCH for graceful stop
# We want systemd to give httpd some time to finish gracefully, but still want KillSignal=SIGWINCH
# it to kill httpd after TimeoutStopSec if something went wrong during the KillMode=mixed
# graceful stop. Normally, Systemd sends SIGTERM signal right after the
# ExecStop, which would kill httpd. We are sending useless SIGCONT here to give
# httpd time to finish.
KillSignal=SIGCONT
PrivateTmp=true PrivateTmp=true
[Install] [Install]

View File

@ -14,7 +14,7 @@
Summary: Apache HTTP Server Summary: Apache HTTP Server
Name: httpd Name: httpd
Version: 2.4.10 Version: 2.4.10
Release: 9%{?dist} Release: 10%{?dist}
URL: http://httpd.apache.org/ URL: http://httpd.apache.org/
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2 Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
Source1: index.html Source1: index.html
@ -669,6 +669,9 @@ rm -rf $RPM_BUILD_ROOT
%{_rpmconfigdir}/macros.d/macros.httpd %{_rpmconfigdir}/macros.d/macros.httpd
%changelog %changelog
* Mon Sep 01 2014 Jan Kaluza <jkaluza@redhat.com> - 2.4.10-10
- use KillMode=mixed in httpd.service (#1135122)
* Fri Aug 29 2014 Joe Orton <jorton@redhat.com> - 2.4.10-9 * Fri Aug 29 2014 Joe Orton <jorton@redhat.com> - 2.4.10-9
- set vstring based on /etc/os-release (Pat Riehecky, #1114539) - set vstring based on /etc/os-release (Pat Riehecky, #1114539)