On 9/6/16, 8:05 AM, Christopher Schultz wrote:

It's worth noting that, when creating the service from the
command-line, the service.bat script will use the current environment
to configure the service. That means that CATALINA_HOME and
CATALINA_BASE are all used to configure the service.

Unfortunately, CATALINA_OPTS is not used. I'll have a look to see how
tough it would be to add CATALINA_OPTS-handling to service.bat... it
seems like it would be nice to do that, and fairly easy.

I wouldn't sweat that part. I still think that the best way to deal with the situation is to put a prominent warning in the preamble comments of the relevant configuration files, explaining that the configuration files are ignored when Tomcat is run as a Windows Service, including links to relevant online documentation for the configuration utility.

I would say that it's valid to assume that somebody *installing* Tomcat on a Windows box, to be run as a service, might reasonably be expected to know about how it works, and how to configure it, whereas somebody like me, accustomed to other platforms, and who has never had a reason to study the Windows service part of the Tomcat docs, would have no reason to know about it.

--
JHHL


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

Reply via email to