[jboss-cvs] JBossAS SVN: r62343 - trunk/system/src/bin.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat Apr 14 13:00:15 EDT 2007
Author: dimitris at jboss.org
Date: 2007-04-14 13:00:15 -0400 (Sat, 14 Apr 2007)
New Revision: 62343
Modified:
trunk/system/src/bin/run.sh
Log:
JBAS-4332, bin/run.sh should force IPv4 on Linux systems
Modified: trunk/system/src/bin/run.sh
===================================================================
--- trunk/system/src/bin/run.sh 2007-04-14 16:57:47 UTC (rev 62342)
+++ trunk/system/src/bin/run.sh 2007-04-14 17:00:15 UTC (rev 62343)
@@ -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