Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-4423

Crowd's Tomcat setenv.sh misses CATALINA_PID variable

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • 2.8.4
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Bundled Tomcat misses a default value for the CATALINA_PID variable, hence Tomcat doesn't create a pid file which makes it hard for systemd startup scripts to recognize if the Tomcat instance has started up (and respectivele systemd can't tell if Tomcat is still running or was shut down correctly).

      Attached is an example code snipped that can be added to apache-tomcat/bin/setenv.sh to make it work:

      # set the location of the pid file
      if [ -z "$CATALINA_PID" ] ; then
          if [ -n "$CATALINA_BASE" ] ; then
              CATALINA_PID="$CATALINA_BASE"/work/catalina.pid
          elif [ -n "$CATALINA_HOME" ] ; then
              CATALINA_PID="$CATALINA_HOME"/work/catalina.pid
          fi
      fi
      export CATALINA_PID
      

      Attachments

        Issue Links

          Activity

            People

              sbennett@atlassian.com stephen
              wwong Wayne Wong (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: