ANSWER FOUND - for me, anyway
This was my experience with a fresh install of Fedora Core 2...
I was stuck for 10 hours today trying to figure out why Apache would start up after reboot, however would not after about an hour when I restarted the daemon like this:
/etc/rc.d/init.d/httpd restart
Apache would respond with:
Stopping httpd: [FAILED]
Starting httpd: [ OK ]
But it wasn't up, and when I ran:
/etc/rc.d/init.d/httpd/status
It responded with:
httpd dead but subsys locked
This sucked. I looked at my error_log and saw the message about available semaphores. This got me thinking. I ran:
sysctl kernel.sem
And Fedora responded with:
kernel.sem = 250 32000 32 128
Apparently too few. I had to issue the following commands:
rm /var/lock/subsys/httpd
rm /etc/httpd/run/httpd
echo "512 32000 32 512" > /proc/sys/kernel/sem
Those values seem to be enough. Now when issuing:
/etc/rc.d/init.d/httpd restart
I get:
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
And when I run:
/etc/rc.d/init.d/httpd status
I get the usual:
httpd (pid A_LOT_OF_PIDS_HERE) is running...
I ran:
echo "kernel.sem=512 32000 100 512" >> /etc/sysctl.conf
To add a command to /etc/sysctl.conf to ensure that enough semaphores are loaded on startup. If this doesn't work for you, try bumping up the first and last numbers (double them).
Woohoo! Problem solved. I hope that helps somebody.
Last edited by kryptronic; 12-09-2004 at 02:18 PM.
|