LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-03-2008, 08:47 AM   #1
arunplr
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
Exclamation <service name> dead but subsys locked


hai,
i am using redhat enterprise linux 4 . i want to start a service from the start up. but when i check the status of the service its showing
<service name> dead but subsys locked.
but when i delete the file like: rm -f -R /var/lock/subsys/<service name>. then

i can start the service. but same problem will occur again when i reboot the system. but i want the service to work from the start up. every time deleting the file from /var/lock/subsys is not feasible.. Is there any body faced the same problem.? Is there any solution to solve this problem.?


Thank you
Arun kumar
 
Old 03-15-2008, 10:13 AM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
What service is this? Is it happening for all of your services?

Does it only happen when you reboot the system?
meaning, once you remove the lock file and start the service, if you restart or stop and then start it again from the command-line does it work correctly.


All of the default service scripts installed during a RHEL4 installation should have an rm -f /var/lock/... statement in their stop function that deletes the service when it shuts-down. If this is a non-RHEL4 provided service you may want to review the init script for this service and make sure that it has the "proper" configuration for cleaning up the lock file when it stops. You can reference any of the properly working service init script to see how they are doing it.
 
  


Reply



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 07:07 AM
Problem with Ser Service Status: ser dead but subsys locked Reu Linux - Software 2 11-03-2007 12:00 PM
psa dead but subsys locked sachin1361 Linux - Enterprise 2 08-07-2007 06:34 AM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM
subsys locked but service dead multiple services. wolfe2554 Linux - Software 5 09-01-2004 11:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration