Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-845

tomcat-jsvc.service has TOMCAT_USER value hard-coded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • JWS 5.0_RHEL DR1
    • JWS 3.1.0 GA
    • rpm, tomcat
    • None

      +++ This bug was initially created as a clone of Bug #1341850 +++
      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.

              rhn-support-csutherl Coty Sutherland
              rhn-support-csutherl Coty Sutherland
              Jan Onderka Jan Onderka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: