LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   restar linux will resolve issues (https://www.linuxquestions.org/questions/linux-newbie-8/restar-linux-will-resolve-issues-945252/)

fachhoch@gmail.com 05-16-2012 04:34 AM

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.

devUnix 05-16-2012 04:37 AM

See if this helps:

http://www.linuxquestions.org/questi...locked-715548/

devUnix 05-16-2012 04:39 AM

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

fachhoch@gmail.com 05-16-2012 04:46 AM

I could not find the /var/run/subsys file , how to find this file ?


Quote:

Originally Posted by devUnix (Post 4679736)
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


fachhoch@gmail.com 05-16-2012 08:10 AM

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 (Post 4679736)
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


chrism01 05-16-2012 07:29 PM

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?


All times are GMT -5. The time now is 09:51 AM.