-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Francis,

On 3/18/2011 3:31 PM, Francis GALIEGUE wrote:
> On Fri, Mar 18, 2011 at 17:58, Christopher Schultz
> <ch...@christopherschultz.net> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Francis,
>>
>> On 3/18/2011 6:16 AM, Francis GALIEGUE wrote:
>>> I build my own CATALINA_HOME, the difference between the bundled
>>> tar.gz and my home are:
>>>
>>> * no i18n jars;
>>> * only the manager webapp, I don't need the others;
>>> * changes in logging, I only use the consolehandler;
>>> * Coyote connector only listens on localhost;
>>> * I use my own startup scripts, and the java command line is as such:
>>
>> That's a waste of time for you. Instead, use a CATALINA_BASE with a
>> custom bin/setenv.sh script to set JAVA_OPTS.
>>
> 
> Beauty hides in the eye of the beholder ;)

Fair enough.

> For one, the default startup and shutdown scripts won't account for
> the time taken for the webapps to deploy: when you use startup.sh, the
> script terminates after the initial bootstrap is done - I don't want
> that. Similarly, the shutdown script won't wait until all webapps are
> undeployed and you can end with a stranded JVM trying to shutdown
> uncooperative webapps.

I'm interested to see how you are able to launch Tomcat and have your
script continue only after all webapps have been deployed. If you can
already do that, you can just call catalina.sh and perform the same
"stalling" technique after it completes.

The same can be said for shutdown. Your command line is not
significantly different from that which catalina.sh uses.

> Second, I use Linux only and don't need the cygwin/as400/etc specific stuff.

While that may be true, the startup scripts are often tweaked for
several reasons and you will likely want to get those updates.

> Third, what if you want to do SNMP monitoring
> (-Dcom.sun.management.snmp.port=xxx etc etc)? You can't with the
> bundled scripts. Why? If you set JAVA_OPTS appropriately, these
> JAVA_OPTS will also be used for shutdown... Which means you can't
> shutdown at all: EADDRINUSE. Unless you arrange for different
> JAVA_OPTS on startup and shutdown, which I don't need to do with my
> scripts.

As Chuck suggests, you haven't read the documentation well enough
because catalina.sh has options to cover your situation described above.

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

iEYEARECAAYFAk2D0m0ACgkQ9CaO5/Lv0PBi1gCfatY5tbMZFGutIERzMyLfvquy
olwAnRXm20wUfnnMsZ03lkro7qXicR9z
=XPYD
-----END PGP SIGNATURE-----

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

Reply via email to