Description of problem: pre_start pre_stop post_start post_stop, the 4 hooks dose not work for jbossas and jbosseap type apps. Version-Release number of selected component (if applicable): cartridge-jbossas-7-0.95.3-1.el6_3.noarch cartridge-jbosseap-6.0-0.2.3-1.el6_3.noarch How reproducible: always Steps to Reproduce: 1.Create jbossas/jbosseap app 2.Modify the pre/post start/stop scripts in the .openshift/action_hooks/ like add "echo 'Pre_start'" 3.Push the build Actual results: The scripts will not be run during the push build. Expected results: The scripts should be run and show the echo message in console output. Additional info:
In the case of the jboss cartridges, output is redirected to /dev/null. In order to tests the pre/post start/stop scripts; add something like the following: echo "***** PRE START JBOSSAS-7 RAN *****" >> "${OPENSHIFT_DATA_DIR}"/hooks.txt And then check the data directory for the presence of the output.
After modify the pre/post start/stop script as Rob's comment, the script works fine for jboss apps. Mark bug as verified.