summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kaluza <hanzz.k@gmail.com>2013-04-16 14:11:13 +0200
committerJan Kaluza <hanzz.k@gmail.com>2013-04-16 14:11:13 +0200
commit110beb13172b78c85c90604879431c8c8bbdf06a (patch)
tree7b9a7464af5d13e9cbc59b78cdd99f2bde1c6ef9
parentf3b6742d9b6845015a35166ef9699e36a5139948 (diff)
downloadhttpd-110beb13172b78c85c90604879431c8c8bbdf06a.tar.gz
httpd-110beb13172b78c85c90604879431c8c8bbdf06a.tar.xz
httpd-110beb13172b78c85c90604879431c8c8bbdf06a.zip
fix service file to not send SIGTERM after ExecStop (#906321, #912288)
-rw-r--r--httpd.service6
-rw-r--r--httpd.spec5
2 files changed, 10 insertions, 1 deletions
diff --git a/httpd.service b/httpd.service
index b176a92..307666c 100644
--- a/httpd.service
+++ b/httpd.service
@@ -8,6 +8,12 @@ EnvironmentFile=/etc/sysconfig/httpd
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop
+# We want systemd to give httpd some time to finish gracefully, but still want
+# it to kill httpd after TimeoutStopSec if something went wrong during the
+# 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
[Install]
diff --git a/httpd.spec b/httpd.spec
index 4a56eda..d952075 100644
--- a/httpd.spec
+++ b/httpd.spec
@@ -14,7 +14,7 @@
Summary: Apache HTTP Server
Name: httpd
Version: 2.4.4
-Release: 3%{?dist}
+Release: 4%{?dist}
URL: http://httpd.apache.org/
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
Source1: index.html
@@ -604,6 +604,9 @@ rm -rf $RPM_BUILD_ROOT
%{_sysconfdir}/rpm/macros.httpd
%changelog
+* Tue Apr 16 2013 Jan Kaluza <jkaluza@redhat.com> - 2.4.4-4
+- fix service file to not send SIGTERM after ExecStop (#906321, #912288)
+
* Tue Mar 26 2013 Jan Kaluza <jkaluza@redhat.com> - 2.4.4-3
- protect MIMEMagicFile with IfModule (#893949)