Project: bamboo
Issue BAM-5127: Improve the Bamboo startup script
There are several things wrong with the bamboo.sh startup script: 1) an option to specify which user to run Bamboo under 2) The startup script takes no care of CWD. Depending on which directory you're in the startup behaves differently. 3) if Bamboo stops abruptly or startup fails, it leaves a bamboo.pid file and this file causes future startup attempts to fail. 4) make use of the JAVA_HOME in bamboo.sh script, Bamboo defaults to the java executable in the System Path - we ask users to set JAVA_HOME, but we never use it in the script 5) Parameterize each of the startup option in RUN_CMD variable or read the options from wrapper.conf file.
Story points: 2