Why httpd graceful restart takes such a long time?

Note that if you have an invalid hostname in your etc/hosts file -- for example, if you did not modify the default installation settings -- then you may wait up to 90 seconds for various tasks to be performed, including starting/restarting httpd.

vi /etc/hosts

Change   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

To   localhost
::1         localhost
111.222.333.444  www.mysite.com mysite.com


/etc/hosts entry for single IP server serving multiple domains


A graceful restart waits for all current connections to close before restarting, whereas a standard restart just aborts current connections.