[jboss-cvs] JBossAS SVN: r60992 - branches/Branch_4_2/server/src/bin.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Feb 28 06:33:28 EST 2007
Author: dimitris at jboss.org
Date: 2007-02-28 06:33:27 -0500 (Wed, 28 Feb 2007)
New Revision: 60992
Modified:
branches/Branch_4_2/server/src/bin/jboss_init_redhat.sh
Log:
JBAS-4041, if JBOSS_HOST specified, use -b to bind jboss services to that address, otherwise do not default to -b 0.0.0.0
Modified: branches/Branch_4_2/server/src/bin/jboss_init_redhat.sh
===================================================================
--- branches/Branch_4_2/server/src/bin/jboss_init_redhat.sh 2007-02-28 10:53:56 UTC (rev 60991)
+++ branches/Branch_4_2/server/src/bin/jboss_init_redhat.sh 2007-02-28 11:33:27 UTC (rev 60992)
@@ -26,14 +26,14 @@
#configuration to use, usually one of 'minimal', 'default', 'all'
JBOSS_CONF=${JBOSS_CONF:-"default"}
-#bind address for jboss services, by default bind to *all* NICs
-JBOSS_HOST=${JBOSS_HOST:-"0.0.0.0"}
+#if JBOSS_HOST specified, use -b to bind jboss services to that address
+JBOSS_BIND_ADDR=${JBOSS_HOST:+"-b $JBOSS_HOST"}
#define the classpath for the shutdown class
JBOSSCP=${JBOSSCP:-"$JBOSS_HOME/bin/shutdown.jar:$JBOSS_HOME/client/jnet.jar"}
#define the script to use to start jboss
-JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c $JBOSS_CONF -b $JBOSS_HOST"}
+JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c $JBOSS_CONF $JBOSS_BIND_ADDR"}
if [ "$JBOSS_USER" = "RUNASIS" ]; then
SUBIT=""
More information about the jboss-cvs-commits
mailing list