[jboss-cvs] JBossAS SVN: r93927 - branches/JBPAPP_4_2_0_GA_CP/server/src/bin.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Sep 22 12:51:19 EDT 2009


Author: mmalina at redhat.com
Date: 2009-09-22 12:51:18 -0400 (Tue, 22 Sep 2009)
New Revision: 93927

Modified:
   branches/JBPAPP_4_2_0_GA_CP/server/src/bin/jboss_init_hpux.sh
Log:
JBPAPP-2306 Adding -b ${JBOSS_BIND_ADDR[i] in the HP-UX init script (jboss_init_hpux.sh)

Modified: branches/JBPAPP_4_2_0_GA_CP/server/src/bin/jboss_init_hpux.sh
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/server/src/bin/jboss_init_hpux.sh	2009-09-22 15:14:34 UTC (rev 93926)
+++ branches/JBPAPP_4_2_0_GA_CP/server/src/bin/jboss_init_hpux.sh	2009-09-22 16:51:18 UTC (rev 93927)
@@ -175,9 +175,15 @@
     [[ -f ${JBOSS_CONSOLE[i]} ]] && mv ${JBOSS_CONSOLE[i]} ${JBOSS_CONSOLE[i]}.old
 
     # JBoss is not running, start it up
-    CMD_START="${JBOSS_HOME[i]}/bin/run.sh -c ${SERVER_NAME[i]}"
+    if [ "x${JBOSS_BIND_ADDR[i]}" = "x" ]; then
+      CMD_START="${JBOSS_HOME[i]}/bin/run.sh -c ${SERVER_NAME[i]}"
+      START_MESSAGE=""
+    else
+      CMD_START="${JBOSS_HOME[i]}/bin/run.sh -c ${SERVER_NAME[i]} -b ${JBOSS_BIND_ADDR[i]}"
+      START_MESSAGE=" on the ${JBOSS_BIND_ADDR[i]} interface"
+    fi 
     nohup su - ${JBOSS_USER[i]} -c "sh $CMD_START" >${JBOSS_CONSOLE[i]} 2>&1 &
-    echo "Starting JBoss AS for user ${JBOSS_USER[i]} at ${JBOSS_HOME[i]} with instance ${SERVER_NAME[i]}."
+    echo "Starting JBoss AS for user ${JBOSS_USER[i]} at ${JBOSS_HOME[i]} with instance ${SERVER_NAME[i]}${START_MESSAGE}."
     
     # wait a few seconds then check if it started ok
     #isJBossRunning ${JBOSS_USER[i]} ${JBOSS_HOME[i]} ${SERVER_NAME[i]} || sleep 2 ||




More information about the jboss-cvs-commits mailing list