Graceful Apache Stop in Ubuntu

I can make sudo $ service apache2 graceful and it will do a graceful restart, but looking at /etc/init.d/apache2, the only way to make graceful completion is to run $ / usr / sbin / apache2ctl -k graceful-stop

But this leads to a PID error: httpd (pid xxxxx?) Does not work

Obviously, Ubuntu / Debian does not mean that I run this command directly.

Basically, I would like to do this in order to do a graceful shutdown (as if waiting for the requests to complete), perform my updates and restart the server.

+3
source share
1 answer

. , , , , .

apachectl -k graceful-stop

http://httpd.apache.org/docs/2.1/stopping.html

+5

Source: https://habr.com/ru/post/1771776/


All Articles