Have you tried 'man ps' on the systems in question to see what the options
should be?

--jeff

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Thomas Fischer" <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 5:10 AM
Subject: Re: how to determine if tomcat is running


> thanks for your response, but this method is not working on all unix
> systems because some of them only show .../java as result of the ps
> command (even with the options you mentioned).
>
> does anybody know anything else how i can be sure if tomcat is running
> or not???
>
> thanks,
>
> thomas.
>
> Am Samstag, 23. Juni 2001 um 20:17 schrieb Jeff Kilbride:
>
> > 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