Scenario- Apache has stopped and is getting the error message below while starting-
[Sat Aug 16 02:22:49 2014] [emerg] (28)No space left on device: Couldn’t create accept lock
Possible cause- Some semaphores might be stuck
Solution- Check semaphores on the server by using the command below
[root@web ~]# ipcs -s
Clear semaphores out with the command below
[root@web ~]# for i in `ipcs -s | awk ‘/httpd/ {print $2}’`; do (ipcrm -s $i); done
Start Apache now
[root@web ~]# /etc/init.d/httpd start
]]>