Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Commit c9a32f5

Browse files
author
OpenShift Bot
committed
Merge pull request #6266 from sferich888/BZ1270660
Merged by openshift-bot
2 parents 74a1ca0 + 2b7a39f commit c9a32f5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • cartridges/openshift-origin-cartridge-jbossews/bin

cartridges/openshift-origin-cartridge-jbossews/bin/control

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ function ishttpup() {
8787
return 1
8888
}
8989

90+
# This function is here to mimmic the EAP cartriges design:
91+
# Due to the lack of a provided mgmt interface, the options to check for
92+
# deployment activation is limited. Thus this fucntion uses an ENV VAR to
93+
# allow you configure a sleep time (in seconds), giving your deployments
94+
# time to start before marking the gear as active.
95+
function waitondeployments() {
96+
sleep ${OPENSHIFT_JBOSSEWS_START_DELAY:-0}
97+
}
98+
9099
function start_app() {
91100
# Check for running app
92101
if isrunning; then
@@ -116,6 +125,7 @@ function start_app() {
116125
echo "$cartridge_type process failed to start"
117126
exit 2
118127
fi
128+
waitondeployments
119129
fi
120130
}
121131

0 commit comments

Comments
 (0)