Permalink
Browse files

fixed ews pid for scaled

  • Loading branch information...
1 parent 0c2407c commit 897bd43f94b3284d0169ab3f264a12d3817feadc @bdecoste bdecoste committed Oct 12, 2012
@@ -91,7 +91,7 @@ function start_app() {
export CATALINA_HOME=$APP_JBOSS
export CATALINA_BASE=$APP_JBOSS
${CART_DIR}/jbossews-1.0/bin/tomcat6 start
- PROCESS_ID=`ps -ef | grep tomcat | grep ${OPENSHIFT_GEAR_UUID} | awk '{print $2}'`
+ PROCESS_ID=`ps -ef | grep tomcat | grep ${OPENSHIFT_GEAR_UUID} | grep java | grep jbossews-1.0 | awk '{print $2}'`
echo $PROCESS_ID > $JBOSS_PID_FILE
if ! ishttpup; then
echo "Timed out waiting for http listening port"
@@ -93,7 +93,7 @@ function start_app() {
export CATALINA_BASE=$APP_JBOSS
echo "!!!!!!!!!!! tomcat7 $CATALINA_HOME $OPENSHIFT_GEAR_UUID" 1>&2
${CART_DIR}/jbossews-2.0/bin/tomcat7 start
- PROCESS_ID=`ps -ef | grep tomcat | grep ${OPENSHIFT_GEAR_UUID} | awk '{print $2}'`
+ PROCESS_ID=`ps -ef | grep tomcat | grep ${OPENSHIFT_GEAR_UUID} | grep java | grep jbossews-1.0 | awk '{print $2}'`
echo "!!!!!!!!!!! PROCESS_ID $PROCESS_ID $JBOSS_PID_FILE" 1>&2
echo $PROCESS_ID > $JBOSS_PID_FILE
if ! ishttpup; then

0 comments on commit 897bd43

Please sign in to comment.