LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-17-2004, 01:05 AM   #1
wolfe2554
Member
 
Registered: Apr 2003
Location: denver co
Distribution: redhat9
Posts: 156

Rep: Reputation: 30
subsys locked but service dead multiple services.


Hi,
I have a redhat box 9 with a custom compiled 2.4.20 kernel (vanilla). I was going along just fine till I found that a number of my service's were not running. I went and checked on there status but found that they are dead but subsys locked. I went to /var/lock/subsys and tried deleting sendmail and restarting it but it failed to shut down and restart was sucessful. yet it is still dead. Here is my service --status-all
[root@localhost sbin]# ./service --status-all edited for subsys locked.
anacron dead but subsys locked
apmd is stopped
arpwatch is stopped
atd dead but subsys locked
Configured Mount Points:
------------------------

Active Mount Points:
--------------------

crond dead but subsys locked
httpd is stopped
Table: filter
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
i
sshd dead but subsys locked

any help would be dearly appreciated.
 
Old 04-17-2004, 09:00 AM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
You should look at /var/log/messages as you attempt to restart some of the services. THere should be an error generated that would help find the problem.
 
Old 04-19-2004, 06:51 PM   #3
wolfe2554
Member
 
Registered: Apr 2003
Location: denver co
Distribution: redhat9
Posts: 156

Original Poster
Rep: Reputation: 30
so David, I started with crond and did a service crond restart and then service crond reload. afterwards I checked the /var/log/messages and it told me that the service shutdown failed. I thought perhaps I had a mislink in my /etc/rc5.d/ dir but that turned false. I could not locate any reason for the failure. Then I deleted the files in /var/lock/subsys, and that got rid of the problem with subsys locked. then I restarted the services and found that the service was once again dead and locked. any suggestions?
 
Old 04-22-2004, 12:34 AM   #4
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
If you do a restart twice without doing anything else, and the stop part fails on the second restart then it should be in the log files why it failed to start and run properly. If it's not in the log files try another service. Some services may have better logging of errors than others, and they may both be failing due to the same problem.
 
Old 09-01-2004, 12:05 PM   #5
Demented-Idiot
LQ Newbie
 
Registered: Sep 2004
Posts: 1

Rep: Reputation: 0
I am also having this problem. I am unable to use sendmail at all.

[root@yuzuki sbin]# service sendmail status
sendmail dead but subsys locked

anyone know how to fix this?
 
Old 09-01-2004, 12:36 PM   #6
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
Delete the lock file in /var/lock/subsys.

Check the log files to see why it's craashing, /var/log/maillog, /var/log/messages.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
service dead but subsys locked packets Linux - Networking 3 11-17-2008 08:07 AM
Problem with Ser Service Status: ser dead but subsys locked Reu Linux - Software 2 11-03-2007 01:00 PM
Crond Dead But Subsys Locked, cannot restart cron services jmm8142 Linux - Software 4 05-23-2005 01:41 PM
saslauthd dead but subsys locked! shyee Linux - Software 0 01-07-2005 04:05 AM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 11:31 PM


All times are GMT -5. The time now is 07:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration