tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Wang <>
Subject Re: Any tools to detect tomcat services failure, and start it again automatically?
Date Sun, 07 Nov 2010 07:35:00 GMT
Thanks to Christopher , Rainer, and Rainer again. I will try to understand
the jsvc.

But for SMF, because we don't run tomcat as root, I am not sure if SMF can
be set and run by normal user. I need check that first.

My idea is, for most applications, normally I get three options: start, stop
and status. But tomcat's has only two choices, startup and
shutdown.  I can't find exist command/script to show the tomcat status. If I
can show the status, I can write the script to start the tomcat, when its
status show tomcat service is down.

So is it possible to ask tomcat develop team to write a general script or
tool to detect tomcat status directly?


Christopher Schultz

On Sat, Nov 6, 2010 at 6:59 AM, Rainer Jung <> wrote:

> On 05.11.2010 16:17, Rainer Frey wrote:
>> On Friday 05 November 2010 12:51:25 Bill Wang wrote:
>>> Hi All,
>>> I am searching the tool (or script) to be used for my tomcat env, that it
>>> can keep running as daemon in background, detect the tomcat services
>>> (several versions of tomcat). If it found the services don't run, or have
>>> failure, it will start it again automatically.
>>> I think I can put the script in cronjob, and run every 5 minutes, or by
>>> other way, please recommend.
>>>  My env is: Solaris 10 with Apache-tomcat 6.0.29 or Jakarta-tomcat 6.0.18
>> Doesn't the Solaris 10 Service Management Framework provide that feature?
>> You'd have to create an appropriate service script for tomcat though.
>> Unforunately I only heard about the SMF from advertising, never used it
>> myself.
> +1, if you primarily want to detect crashes, SMF is the way to go, at least
> if you like using what your platform provides. If you are looking for a more
> platform independent way jsvc is often used.
> Regards,
> Rainer
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message