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

Crowd's Tomcat setenv.sh misses CATALINA_PID variable

    • Icon: Suggestion 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.

      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
      

          Form Name

            [CWD-4423] Crowd's Tomcat setenv.sh misses CATALINA_PID variable

            Conny Postma made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 176021 ]
            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3388060 ] New: JAC Suggestion Workflow 3 [ 3629875 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 [ 1391861 ] New: JAC Suggestion Workflow [ 3388060 ]
            Issue Type Original: Improvement [ 4 ] New: Suggestion [ 10000 ]
            Lukasz Pater made changes -
            Link New: This issue relates to CWD-4771 [ CWD-4771 ]
            Rudy Slaiby made changes -
            Remote Link New: This issue links to "Page (Atlassian Documentation)" [ 176021 ]
            Owen made changes -
            Workflow Original: Crowd Development Workflow v2 [ 904031 ] New: Simplified Crowd Development Workflow v2 [ 1391861 ]
            Marcin Kempa made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 170902 ]
            Marcin Kempa made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 170864 ]
            Marcin Kempa made changes -
            Remote Link Original: This issue links to "Page (Extranet)" [ 170705 ]
            Marcin Kempa made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 170705 ]

              sbennett@atlassian.com Stephen
              wwong Wayne Wong
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: