LinuxQuestions.org
Help answer threads with 0 replies.
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, 04: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, 04:37 AM   #2
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Rep: Reputation: 59
See if this helps:

http://www.linuxquestions.org/questi...locked-715548/
 
Old 05-16-2012, 04:39 AM   #3
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Rep: Reputation: 59
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, 04: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, 08: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 08:14 AM.
 
Old 05-16-2012, 07:29 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434

Rep: Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790
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 07:42 AM
Issues to resolve please Tony_photoplus Linux - Software 14 01-25-2011 04:03 AM
DNS resolve issues - Dont know where to look studioq Linux - Networking 13 09-21-2007 05:36 PM
Can't resolve DNS issues. Am I using the right ones? A6Quattro Linux - Networking 6 07-15-2005 08:59 PM
Few issues to resolve: RRepster Slackware 11 12-19-2002 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:06 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