QUOTE
Originally posted by NexDog
Apache fails with such errors and a restart fixes it. I think this maybe happening when apache gets restarted in the middle of my_apci_rst.
Try this then let me know.. do a backup of httpd before changing it ;
editi "stop" function in /etc/init.d/httpd script, add line like:
ps -ax | grep httpd | grep -v restart | grep -v stop | awk '{print "kill -9 " $1}' | sh > /dev/null 2>&1
so, it should be like:
....
stop() {
echo -n $"Stopping $prog: "
killproc $httpd
RETVAL=$?
ps -ax | grep httpd | grep -v restart | grep -v stop | awk '{print "kill -9 " $1}' | sh > /dev/null 2>&1
echo
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/httpd /var/run/httpd.pid
}