It appears Apache graceful reload (apachectl graceful) is an asynchronous operation. If I invoke it from a script, the script will continue while Apache does its thing, which may take an undetermined amount of time (e.g. slow clients, long downloads).
I'd like to programmatically detect when the reload is complete and Apache is now running with the new configuration. In other words, I'd like to find some way of treating it like a synchronous call that only continues once Apache is done.
How would you do that if you were me?
Added 12/09: It appears that Apache restarts idle threads with the new configuration but threads with open connections keep the old configuration until the connection terminates. So perhaps the question could be asked more precisely about determining when Apache starts accepting new connections with the new configuration.