LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   httpd dead but subsys locked (https://www.linuxquestions.org/questions/linux-general-1/httpd-dead-but-subsys-locked-59504/)

x2000koh 05-12-2003 11:50 PM

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

DavidPhillips 05-15-2003 06:59 PM

you need to delete this file


/var/lock/subsys/httpd

you can start the server then

x2000koh 05-16-2003 01:16 AM

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

kryptronic 12-09-2004 01:48 AM

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.

ftokc 02-17-2005 06:02 AM

Thanks, kryptronic! That really helped.

eliphas 03-21-2005 05:26 PM

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.