httpd dead but subsys locked
Hi Linux user group
Appreciate if anyone can help. I am working setting up my apacehe services for computer clustering. When I type in the following /etc/rc.d/init.d/httpd status I have received the following message. httpd dead but subsys locked Can any one help ? What is the above message means and how to solve the problem. Thank you x2000koh |
you need to delete this file
/var/lock/subsys/httpd you can start the server then |
httpd dead but subsys locked
David
Thanks ! I have deleted it and it work but it come back to the same error message. To share my solution to all linux users who encountered the same problem. So what I did was to comment Listen 80.(#listen80) that's mean the apache will list to all request instead of just port 80.(listen*:80) Thanks a gain david. x2000koh |
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. |
Thanks, kryptronic! That really helped.
|
thanks that helped me ... I htought i would have to treinstalled it .. an dI had the idea to browse the forum.
|
All times are GMT -5. The time now is 04:03 AM. |