1 |
type: bugfix |
2 |
subject: Updated apache packages cure a timeout when stopping or restarting the service |
3 |
src: |
4 |
3: |
5 |
core: |
6 |
- apache-2.4.4-7.1.mga3 |
7 |
description: | |
8 |
A problem was found with the httpd systemd unit files that frequently |
9 |
resulted in a deadlock when stopping or restarting the service. |
10 |
|
11 |
The unit file was configured to use the httpd -k graceful-stop command |
12 |
to stop the running instances of httpd. This command is asynchronous but |
13 |
systemd expects the command to be synchronous, only exiting once all the |
14 |
processes have stopped. This causes systemd to send a SIGTERM to all |
15 |
processes remaining in the cgroup which can cause problems for the |
16 |
shutdown process resulting in the deadlock. systemd would later send a |
17 |
SIGKILL which would properly kill the processes but this would only happen |
18 |
after a timeout. |
19 |
|
20 |
This update changes the systemd unit to not send the initial SIGTERM and |
21 |
thus waits for the processes to exit normally before (if things don't go |
22 |
well) calling SIGKILL as before after a timeout. |
23 |
references: |
24 |
- https://bugs.mageia.org/show_bug.cgi?id=10591 |