tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: How to make Tomcat 6 generate a PID file on Windows
Date Tue, 18 Jan 2011 19:41:15 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Anil,

On 1/18/2011 2:20 PM, Anil Ambati wrote:
> Hi,
> Is it possible to make Tomcat to write PID to a file on windows? 
> Looking=20
> at catalina.sh, I see that CATALINA=5FPID is the environment variable used 
> to specify the file name where Tomcat needs to write its PID on Unix 
> but=20
> same is not the case on Windows.=20

I guess catalina.bat doesn't support this because win32 doesn't provide
the ability to get the PID of a child process on the command line.

I believe if you run TC as a service, you can write the PID to a file
but I haven't checked to make sure that's true.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk017NoACgkQ9CaO5/Lv0PBZvQCdHTVMy02dX9F8+RpxgrucuzRN
7IMAn1x//jQ8qPqGiW6yserVMYP+Ehz1
=K8Bk
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message