Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
1
-
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