Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20372

Bamboo start-up scripts should utilize CATALINA_PID checking

    XMLWordPrintable

Details

    • 1
    • 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

      Problem Definition

      Currently the Bamboo start-up scripts aren't defensive against having multiple Bamboo processes started from the same install directory. This can cause file locking and resourcing issues.

      Suggested Solution

      Other products, such as Confluence create a catalina PID file which is checked upon start-up. If the PID exists and is active, a second process won't be started and an error is reported.

      Workaround

      Add CATALINA_PID checking below the line"cat "${PRGDIR}"/bamboobanner.txt" in $BAMBOO_INSTALL/bin/setenv.sh. Example:

      <bamboo-install>/bin/setenv.sh
      PRGDIR=`dirname "$0"`
      cat "${PRGDIR}"/bamboobanner.txt
      
      # 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

              Unassigned Unassigned
              jowen@atlassian.com Jeremy Owen
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: