Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I perform a:

systemctl stop httpd

Apache often takes minutes to stop. The command:

apachectl gracefully-stop

always stops immediately. Anyone have any idea what might be causing this? The commands:

systemctl start httpd

and

apachectl start

both run very quickly. Somehow this is both systemd and stopping httpd related (and possibly Arch Linux related).

share|improve this question

1 Answer 1

According to: https://bugzilla.redhat.com/show_bug.cgi?id=906321 there is an issue with the default systemd KillMode for Apache.

One temporary fix is to add KillMode=none to /usr/lib/systemd/system/httpd.service

Be sure to run sudo systemctl --system daemon-reload after you make the change.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.