You should have a java process running 'org.apache.tomcat.startup.Tomcat'
when Tomcat is running. For example, when I run the 'ps' command I see the
following:

/usr/local/java/IBMJava2-13/jre/bin/exe/java -Xms64M -Xmx128M
   -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
   -Dtomcat.home=/usr/local/java/jakarta-tomcat-3.2.2
   org.apache.tomcat.startup.Tomcat

This is all on one line, of course, and I have to use 'ps awx --cols=250'
(Linux) in order to see the entire command line.

Hope this helps.

Thanks,
--jeff

----- Original Message -----
From: "Thomas Fischer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 23, 2001 10:34 AM
Subject: how to determine if tomcat is running


> i'm writing a script (on a unix-system) which should do different tasks
> wether tomcat is running or not. to do so the script has to figure out
> the status of tomcat. most daemons use .pid-files or anything similar.
> but i found nothing for tomcat.
>
> i've looked all through the documentation but found nothing about the
> runtime status of tomcat. how can i find out if tomcat is already
> running?
>
> thanks for any responses,
>
> thomas.
>

Reply via email to