Advisories ยป MGAA-2013-0060

Updated apache packages cure a timeout when stopping or restarting the service

Publication date: 16 Jul 2013
Modification date: 16 Jul 2013
Type: bugfix
Affected Mageia releases : 3

Description

A problem was found with the httpd systemd unit files that frequently
resulted in a deadlock when stopping or restarting the service.

The unit file was configured to use the httpd -k graceful-stop command
to stop the running instances of httpd. This command is asynchronous but
systemd expects the command to be synchronous, only exiting once all the
processes have stopped. This causes systemd to send a SIGTERM to all
processes remaining in the cgroup which can cause problems for the
shutdown process resulting in the deadlock. systemd would later send a
SIGKILL which would properly kill the processes but this would only happen
after a timeout.

This update changes the systemd unit to not send the initial SIGTERM and
thus waits for the processes to exit normally before (if things don't go
well) calling SIGKILL as before after a timeout.
                

References

SRPMS

3/core