Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

hot_deploy

  • Loading branch information...
commit 150dbc708167777d36513147d7d88a617a85bd9a 1 parent 775ea4e
@bdecoste authored
Showing with 13 additions and 9 deletions.
  1. +13 −9 cartridges/openshift-origin-cartridge-jbosseap/bin/control
View
22 cartridges/openshift-origin-cartridge-jbosseap/bin/control
@@ -219,15 +219,19 @@ function stop() {
if isrunning
then
- if [ -f "$JBOSSEAP_PID_FILE" ]; then
- source ${OPENSHIFT_REPO_DIR}/.openshift/action_hooks/pre_stop_${cartridge_type}
- pid=$(cat $JBOSSEAP_PID_FILE);
- echo "Sending SIGTERM to jboss:$pid ..." 1>&2
- killtree $pid
- source ${OPENSHIFT_REPO_DIR}/.openshift/action_hooks/post_stop_${cartridge_type}
- else
- echo "Failed to locate JBOSS PID File" 1>&2
- fi
+ if hot_deploy_marker_is_present ; then
+ echo "Hot deploy enabled. Not stopping"
+ else
+ if [ -f "$JBOSSEAP_PID_FILE" ]; then
+ source ${OPENSHIFT_REPO_DIR}/.openshift/action_hooks/pre_stop_${cartridge_type}
+ pid=$(cat $JBOSSEAP_PID_FILE);
+ echo "Sending SIGTERM to jboss:$pid ..." 1>&2
+ killtree $pid
+ source ${OPENSHIFT_REPO_DIR}/.openshift/action_hooks/post_stop_${cartridge_type}
+ else
+ echo "Failed to locate JBOSS PID File" 1>&2
+ fi
+ fi
fi
}
Please sign in to comment.
Something went wrong with that request. Please try again.