[jboss-cvs] JBossAS SVN: r62338 - branches/Branch_4_2/system/src/bin.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Apr 13 13:29:44 EDT 2007
Author: dimitris at jboss.org
Date: 2007-04-13 13:29:44 -0400 (Fri, 13 Apr 2007)
New Revision: 62338
Modified:
branches/Branch_4_2/system/src/bin/run.sh
Log:
JBAS-4332, bin/run.sh should force IPv4 on Linux systems
Modified: branches/Branch_4_2/system/src/bin/run.sh
===================================================================
--- branches/Branch_4_2/system/src/bin/run.sh 2007-04-13 17:22:08 UTC (rev 62337)
+++ branches/Branch_4_2/system/src/bin/run.sh 2007-04-13 17:29:44 UTC (rev 62338)
@@ -32,6 +32,7 @@
# OS specific support (must be 'true' or 'false').
cygwin=false;
darwin=false;
+linux=false;
case "`uname`" in
CYGWIN*)
cygwin=true
@@ -40,6 +41,10 @@
Darwin*)
darwin=true
;;
+
+ Linux)
+ linux=true
+ ;;
esac
# Read an optional running configuration file
@@ -50,6 +55,11 @@
. "$RUN_CONF"
fi
+# Force IPv4 on Linux systems since IPv6 doesn't work correctly with jdk5 and lower
+if [ "$linux" = "true" ]; then
+ JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"
+fi
+
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$JBOSS_HOME" ] &&
More information about the jboss-cvs-commits
mailing list