On Openshift, using the Tomcat 7(jbossews) cartridge, I am trying to set JAVA_OPTS_EXT, following the advice given in this thread: Not able to set options in JAVA_OPTS in JBoss openshift My cartridge name is jbossews, and my pre_start script is named pre_start_jbossews. My script does not appear to be running. I've checked this by including an echo command - the echo message does not appear in the log. I have set the execute bit, and I used the standard procedure to deploy the script, using git. (and I have checked that it was installed on the server).
pre_start_jbossews:
echo "executing pre_start"
export JAVA_OPTS_EXT=" -Duser.timezone=Australia/Sydney "
Thanks in advance.