-
Bug
-
Resolution: Done
-
Major
-
JWS 3.1.0 CR7
-
None
-
Release Notes
-
-
-
-
-
-
-
Documented as Resolved Issue
-
Workaround Exists
-
The following is an excerpt from /usr/share/tomcat8/conf/tomcat8.conf showing that TOMCAT_USER is configured there:
# What user should run tomcat TOMCAT_USER="tomcat"
However, this is quite misinforming as updating TOMCAT_USER or TOMCAT_GROUP has no effect on the service. This is because the service unit (/usr/lib/systemd/system/tomcat8.service) explicitly configures the User/Group which owns the service:
[Service] ... User=tomcat Group=tomcat ...
This is done because using environment variables in the systemd unit does not work by design (they only work when used with ExecStart/ExecStop and a couple other directives, read more here).
- is caused by
-
JWS-156 replace init scripts for tomcat7 and 8 on RHEL7 by systemd units
- Closed
- is related to
-
JWS-189 tomcat init scripts should use variable CATALINA_PID
- Closed
-
JWS-696 [RHEL 7 RPM] Tomcat needs sysconfig and conf files specific to systemd
- Closed
- relates to
-
JWS-845 tomcat-jsvc.service has TOMCAT_USER value hard-coded
- Closed