[jboss-cvs] JBossAS SVN: r60994 - branches/Branch_4_0/server/src/bin.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Feb 28 06:35:00 EST 2007
Author: dimitris at jboss.org
Date: 2007-02-28 06:34:59 -0500 (Wed, 28 Feb 2007)
New Revision: 60994
Modified:
branches/Branch_4_0/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_0/server/src/bin/jboss_init_redhat.sh
===================================================================
--- branches/Branch_4_0/server/src/bin/jboss_init_redhat.sh 2007-02-28 11:34:26 UTC (rev 60993)
+++ branches/Branch_4_0/server/src/bin/jboss_init_redhat.sh 2007-02-28 11:34:59 UTC (rev 60994)
@@ -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