-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Billy,

On 1/26/15 8:57 AM, Billy Bones wrote:
> PS: I've found something bizarre on the systemd init process
> regarding Tomcat, if I set the CONNECTOR_PORT variable to something
> (let said 8081) on the /etc/sysconfig/tomcat-${SERVICE_NAME} it is
> not use but rather overrided by the tomcat server.xml file.

That's not surprising, since Tomcat uses the contents of server.xml to
configure the connectors, and does not look at any environment
variables for anything.

Where is CONNECTOR_PORT documented? I suspect it's something supported
by the systemd scripts simply to differentiate between various Tomcat
"servers" but doesn't have any bearing on the actual runtime
configuration. Remember that Tomcat can bind to an arbitrary number of
ports, so having a single CONNECTOR_PORT doesn't really make much sense.

> Until now, nothing strange, the weird part is that if I disable
> the HTTP-BIO or AJP-BIO connectors values on this file tomcat load
> the unit without binding any network port at all.

That's expected behavior: it's possible that Tomcat is coming up with
no Connectors configured, and that some other software component will
then configure the connectors after the server is running. Think of an
embedded use-case and it becomes easier to understand how this would
not be an error.

> Shouldn't it be [using] the one specified by the CONNECTOR_PORT 
> variable or did I missed something?

No, Tomcat doesn't use environment variables for anything. The launch
scripts use a handful of environment variables to set up various
system properties when launching the JVM, and Tomcat uses those if
necessary.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUxlopAAoJEBzwKT+lPKRYwcUP/0UYgfDJ8XaETTjPkvvN8j08
mqLeXkP+Mr84MCGtBMTytF9XYi1XXE5FdHdXhtWOScoe+IdYtuM42E4/YubJm7g3
V99mVbaiw9O5tFm9lDFYUaNhG3r0jLYmbMNGWxNAoWiCL18RKcVQ6tgu74DpBzgH
XmWaRSB20xAp3iCYP25dRQpwVTmwrCTHeYLOmbeHKqQGRTeA37dQSuisz1SYptgp
iQs/CXlkumHDRRGmXiihcbUQiMmULmmAZUGyjl3jex9eHfQcDXIZ34edBgh5fMwW
w6FMUfUTmqVAeZbceCZdoBDtifNkFUbCr0f3eMNGV4oSHrA7fJv/xxi9kUoLpiuG
5/9j1wK3eOsBKPCVEJkuQ79zQXgI9bOW4/c5mAp3Coq6z8Me8AbYYAuiLhPjaCec
oBtHc13Lr8HqZW/kdJCNgwN1Y4YDxwYwaNODh966M6ZF3Gsk8aZ6a8P2YI7u5jaW
ixMxft7lSpNrQWdwHy4DDlPtuwGk3n8ERaxk8d37YOGRxSjk9jS+9Bgdz/Dxznkd
NQ0IRqwZ9LIuFt/VjYdPPRJDmOm9oIclEDq97aKp2cP3kz7s+JkUBZyLKefynW2Y
A24ha+4d5Mi8RCj6TTkdFm7mB9WpUQhuSFEw79NpsToz5jv0D43ZsiFdehdukOwc
fY8+Fsy+LWIwpbIdpM/N
=9SDP
-----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