Re: how to determine if tomcat is running

2001-06-25 Thread Parag Thakur


hello,

why not write a small servlet that returns some value. then, in the
script, just try to fetch the URL corresponding to that servlet. if u
come back with a value, it means that tomcat is running, else not.

hope that helps
parag.

On Sun, 24 Jun 2001, [EMAIL PROTECTED] wrote:

Date: Sun, 24 Jun 2001 14:10:30 +0200
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Thomas Fischer <[EMAIL PROTECTED]>
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.
>>
>




Re: how to determine if tomcat is running

2001-06-24 Thread Jeff Kilbride

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.
> >>
> >
>




Re: how to determine if tomcat is running

2001-06-24 Thread Jeff Waugh

If tomcat is running it will be listening on the ports specified in the
Connectors in server.xml.

These will show up as listening in netstat, can be queried with lsof
or fuser. Even that is no guarantee that it is tomcat listening, but
it would be fairly trivial to retrieve a test page via a perl script
to verify if it is tomcat or not.

HTH,
-Jeff

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Thomas Fischer" <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 8: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.
> >>
> >
>




Re: how to determine if tomcat is running

2001-06-24 Thread 100520 . 2367

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.
>>
>



Re: how to determine if tomcat is running

2001-06-23 Thread 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.
>




how to determine if tomcat is running

2001-06-23 Thread Thomas Fischer

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.