Scenario / Questions
Is there a way to stop the Apache server without terminating executing requests, basically a way to tell it – don’t accept any more connections and shut down when you finish your current ones?
Find below all possible solutions or suggestions for the above questions..
apachectl -k graceful-stop from here:
The WINCH or
graceful-stop signal causes the parent process to advise the children
to exit after their current request (or to exit immediately if they’re
not serving anything). The parent will then remove its PidFile and
cease listening on all ports. The parent will continue to run, and
monitor children which are handling requests. Once all children have
finalised and exited or the timeout specified by the
GracefulShutdownTimeout has been reached, the parent will also exit.
Keep in mind that sys-v init used to do graceful stop by default and had force-stop as an extra option. A “special” option to gracefully stop is only needed if you run a custom process manager that normally kills processes.
Kubernetes Free Online Tutorial, Kubernetes Beginner Tutorial
DevOps Free Online Tutorial, DevOps Beginner Tutorial
Ansible Free Online Tutorial, Ansible Beginner Tutorial
Docker Free Online Tutorial, Docker Beginner Tutorial
Openstack Free Online Tutorial, Openstack Beginner Tutorial
Disclaimer: This has been sourced from a third party syndicated feed through internet. We are not responsibility or liability for its dependability, trustworthiness, reliability and data of the text. We reserves the sole right to alter, delete or remove (without notice) the content in its absolute discretion for any reason whatsoever.
Source: Stop Apache gracefully