Welcome! If this is your first visit, be sure to check out the FAQ. You will have to register before you can post in the forums. (Be aware the forums do not accept user names with a dash "-") Also, logging in lets you avoid the CAPTCHA verification when searching . Select Articles, Forum, or Blog. Posting in the Forums implies acceptance of the Terms and Conditions.

tomcat6 status results into dead state

Hi,

When i start tomcat6 (on a SLES 11 box) two times without a stop in between, rctomcat6 status results into dead state.

I checked the rctomcat6 start script, in this case when the tomcat6 is already running and a rctomcat6 start is done, it display a msg that "process already running", but it continues in the start function further down & executes the TOMCAT_SCRIPT(dtomcat6) script with the start argument. And after that pid in the tomcat6.pid file gets changed but the process keeps running with the old pid, and hence when we do a rctomcat6 status, it results into dead state(bcoz it doesn't find any process running with that pid).

I think it shouldn't execute the TOMCAT_SCRIPT in this case, so in case when checkpid is success(in start function), i put an exit after the echo msg " process already running", this solves the problem, but is this the correct solution ?

Re: tomcat6 status results into dead state

you are welcome to hang here and see if one of the SLE_ users here in
the openSUSE forums have an answer for you, but you might be better
and quicker served in one of the actual SLE_ forums hosted by the
maker, at forums.novell.com

the pass/ID you used here works there too..

(and, there *are* some quite a lot differences between openSUSE 11.3
[which most here are using] and SLES 11, so . . .)