Error While restating apache
pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
A script that can be used to killall http semaphores and restart http:
#!/bin/bash
ipcs -s | grep nobody | perl -e 'while (<STDIN>) {
@a=split(/\s+/); print `ipcrm sem $a[1]`}'
killall -9 /usr/local/apache/bin/httpd
killall -9 /usr/local/apache/bin/httpd
killall -9 /usr/local/apache/bin/httpd
/scripts/restartsrv httpd
View the sem value using the below command
cat /proc/sys/kernel/sem
increase the value
echo 32000 32000 512 512 > /proc/sys/kernel/sem