LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-16-2012, 05:34 AM   #1
fachhoch@gmail.com
Member
 
Registered: Apr 2010
Posts: 82

Rep: Reputation: 1
restar linux will resolve issues


I get this error when I call tomcat service

Code:
tomcat dead but subsys locked
I tried restart still its the same error , does restart linux resolve these kind of issues?
I tried restart still the same issue.
 
Old 05-16-2012, 05:37 AM   #2
devUnix
Member
 
Registered: Oct 2010
Location: Bengaluru, India
Distribution: RHEL 5.1 on My PC, & SunOS / Sun Solaris, RHEL, SuSe, Debian, FreeBSD and other Linux flavors @ Work
Posts: 576

Rep: Reputation: 48
See if this helps:

http://www.linuxquestions.org/questi...locked-715548/
 
Old 05-16-2012, 05:39 AM   #3
devUnix
Member
 
Registered: Oct 2010
Location: Bengaluru, India
Distribution: RHEL 5.1 on My PC, & SunOS / Sun Solaris, RHEL, SuSe, Debian, FreeBSD and other Linux flavors @ Work
Posts: 576

Rep: Reputation: 48
Also check this:

There's a file that gets created when services start - usually held in
/var/run/subsys or so - and are empty files but serve as a flag to
indicate that the process is running.

When the service terminates abnormally, that file often doesn't get
deleted. That message you see is referring to the fact that the file
exists but no running process is detected.

To get around it, firstly execute the "shutdown" script, something like:

/etc/init.d/tomcat stop

It may give errors, but it should write to its logfiles etc and think
that the process has finished.

Then find the subsys file and delete it. Then start the process, eg:

/etc/init.d/tomcat start

That should get you running again.



Source: http://www.mombu.com/gnu_linux/red-h...-10496087.html
 
Old 05-16-2012, 05:46 AM   #4
fachhoch@gmail.com
Member
 
Registered: Apr 2010
Posts: 82

Original Poster
Rep: Reputation: 1
I could not find the /var/run/subsys file , how to find this file ?


Quote:
Originally Posted by devUnix View Post
Also check this:

There's a file that gets created when services start - usually held in
/var/run/subsys or so - and are empty files but serve as a flag to
indicate that the process is running.

When the service terminates abnormally, that file often doesn't get
deleted. That message you see is referring to the fact that the file
exists but no running process is detected.

To get around it, firstly execute the "shutdown" script, something like:

/etc/init.d/tomcat stop

It may give errors, but it should write to its logfiles etc and think
that the process has finished.

Then find the subsys file and delete it. Then start the process, eg:

/etc/init.d/tomcat start

That should get you running again.



Source: http://www.mombu.com/gnu_linux/red-h...-10496087.html
 
Old 05-16-2012, 09:10 AM   #5
fachhoch@gmail.com
Member
 
Registered: Apr 2010
Posts: 82

Original Poster
Rep: Reputation: 1
any help with this

tomcat starts shutsdown no errors but when tomcat is runing i check the status servide tomcat status
I get
tomcat dead but subsys locked

I tried rm -rf /var/lock/subsys/tomcat but did not change.


Quote:
Originally Posted by devUnix View Post
Also check this:

There's a file that gets created when services start - usually held in
/var/run/subsys or so - and are empty files but serve as a flag to
indicate that the process is running.

When the service terminates abnormally, that file often doesn't get
deleted. That message you see is referring to the fact that the file
exists but no running process is detected.

To get around it, firstly execute the "shutdown" script, something like:

/etc/init.d/tomcat stop

It may give errors, but it should write to its logfiles etc and think
that the process has finished.

Then find the subsys file and delete it. Then start the process, eg:

/etc/init.d/tomcat start

That should get you running again.



Source: http://www.mombu.com/gnu_linux/red-h...-10496087.html

Last edited by fachhoch@gmail.com; 05-16-2012 at 09:14 AM.
 
Old 05-16-2012, 08:29 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Look in the service start up file (prob in /etc/init.d); it should mention the relevant file+location

Try
Code:
ls /var/lock/subsys

Which distro+version is this?
 
  


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
[SOLVED] No SSH access after reboot from outside till network restar talekksna Red Hat 3 03-08-2012 08:42 AM
Issues to resolve please Tony_photoplus Linux - Software 14 01-25-2011 05:03 AM
DNS resolve issues - Dont know where to look studioq Linux - Networking 13 09-21-2007 06:36 PM
Can't resolve DNS issues. Am I using the right ones? A6Quattro Linux - Networking 6 07-15-2005 09:59 PM
Few issues to resolve: RRepster Slackware 11 12-19-2002 06:56 PM


All times are GMT -5. The time now is 10:48 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration