41.httpd event script workaround for RHEL5-ism.
authorMartin Schwenke <martin@meltin.net>
Mon, 11 May 2009 04:50:28 +0000 (14:50 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 11 May 2009 22:53:32 +0000 (08:53 +1000)
commit2d3fbbbb63f443686f9fec42c0bc2058d115806e
treef9dbd89607191fb0ef19a4791c92371c88812b94
parentbbae698656d5da9a4a5b0fbfc3003844f246d54b
41.httpd event script workaround for RHEL5-ism.

RHEL5 can SIGKILL httpd when stopping it, causing it to leak
semaphores.  This means that eventually a node runs out of semaphores
and httpd can't be started.  So, before we attempt to start httpd we
clean up any semaphores owned by apache.  We also try to restart httpd
in the monitor event if httpd has gone away.

Signed-off-by: Martin Schwenke <martin@meltin.net>
config/events.d/41.httpd