We are using the community Chef apache2 cookbook with great success; my question revolves around using the "notifies" notification mechanism to tell Apache 2 of configuration changes.
We run a custom watchdog utility to restart the whole app, including Apache, if it become unresponsive. This watchdog utility queries a particular status URL to determine availability. The problem is, if the timing is bad and the watchdog does a health check just as Chef is restarting Apache, then the whole app stack is bounced.
Is there a way I can make the "notifies" mechanism shutdown the watchdog when it restarts Apache at the end of the run? Then start the watchdog up again once Apache has been restarted.