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.
source
share