I have an appliance which runs apache in it. Admin configures the appliance using web UI.
There are some configurations which needs apache restart. As you can imagine restarting apache
from a web page back-end would end up in a page-not-found error on the browser. How do you solve this ?
Currently we have a delayed re-start script. When the restart is initiated using this script, it spawns
another instance and returns immediately to complete the HTTP request. The second instance restarts
apache after a delay (couple of seconds). This works fine - but not always. So is there a better way to
do this ?