Semaphore processes httpd rescue
I'm having troubles lately with this, the server starts to crash and rescue can't fix it. The error_log reveals Apache: [emerg] (28)No space left on device: Couldnt create accept lock.
A search gave me this article: http://linuxtechme.wordpress.com/2012/09/09/apache-emerg-28no-space-left-on-device-couldnt-create-accept-lock/ and this is the only way I can start it.
I manually added the fix in the rescueHttp method in the core mod. The only way to know if it is working is to wait.
The httpd owner is apache on my system, so I hard coded it in the shell_exec command.
if ($tryCount > 2) { $app->log("Clearing semaphores table for user apache.",LOGLEVEL_DEBUG); shell_exec("ipcs -s | grep apache | awk '{ print $2 }' | xargs ipcrm sem"); }