Restart Apache Server Without Dropping Connections
Posted on 02 January 2008 by admin
It will happen that you are doing some reconfiguration on your web server and need to restart apache to finish the config. Trouble is, you have people currently logged on to your site. What to do? Restart apache without dropping the connections! Here’s how.
In Terminal just type;
#/etc/init.d/apache2 graceful
This will “gracefully” restart your Apache server and load any config changes, mods etc. without affecting or dropping your client’s current connections.
Obviously while Apache is restarting no new connections will be available until Apache is fully restarted.
Tags | General, Linux, Servers, Ubuntu
