https://bugzilla.redhat.com/show_bug.cgi?id=1341850
Bug ID: 1341850
Summary: tomcat-jsvc.service has TOMCAT_USER value hard-coded
Product: Fedora
Version: 23
Component: tomcat
Assignee: ivan.afonichev(a)gmail.com
Reporter: csutherl(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: alee(a)redhat.com, csutherl(a)redhat.com,
ivan.afonichev(a)gmail.com,
java-sig-commits(a)lists.fedoraproject.org,
krzysztof.daniel(a)gmail.com, me(a)coolsvap.net
External Bug ID: Red Hat Bugzilla 1201409
Description of problem:
The TOMCAT_USER value should be configurable instead of always "tomcat".
Looking at the way that the service unit executes the tomcat script, I see that
the functions script is sourced in the preamble BEFORE the configuration is
loaded, so even if we check the TOMCAT_USER variable and try and use it, it
would always be empty. Could we move the configuration sourcing before we
source functions to make it configurable?
Version-Release number of selected component (if applicable):
tomcat-8.0.32-5.fc23.noarch
How reproducible:
Always
Steps to Reproduce:
1. Set TOMCAT_USER="notTomcat" in tomcat.conf
2. Start service with jsvc: systemctl start tomcat-jsvc
3. Observe that the process owner is "tomcat" instead of "notTomcat"
Actual results:
Process owner is "tomcat"
Expected results:
Process owner is "notTomcat"
Additional info:
This issue was raised against RHEL in the bug here
https://bugzilla.redhat.com/show_bug.cgi?id=1201409. I'll link it as well.
--
You are receiving this mail because:
You are on the CC list for the bug.