[jboss-cvs] JBossAS SVN: r101720 - trunk/main/src/bin.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Mar 2 11:08:08 EST 2010
Author: mladen.turk at jboss.com
Date: 2010-03-02 11:08:07 -0500 (Tue, 02 Mar 2010)
New Revision: 101720
Modified:
trunk/main/src/bin/run.sh
Log:
Fix JBPAPP-3796. The trick is to quote the detach ampersand so it's executed within eval
Modified: trunk/main/src/bin/run.sh
===================================================================
--- trunk/main/src/bin/run.sh 2010-03-02 15:43:55 UTC (rev 101719)
+++ trunk/main/src/bin/run.sh 2010-03-02 16:08:07 UTC (rev 101720)
@@ -224,17 +224,17 @@
while true; do
if [ "x$LAUNCH_JBOSS_IN_BACKGROUND" = "x" ]; then
# Execute the JVM in the foreground
- "$JAVA" $JAVA_OPTS \
+ eval "$JAVA" $JAVA_OPTS \
-Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-classpath "$JBOSS_CLASSPATH" \
org.jboss.Main "$@"
JBOSS_STATUS=$?
else
# Execute the JVM in the background
- "$JAVA" $JAVA_OPTS \
+ eval "$JAVA" $JAVA_OPTS \
-Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-classpath "$JBOSS_CLASSPATH" \
- org.jboss.Main "$@" &
+ org.jboss.Main "$@" "&"
JBOSS_PID=$!
# Trap common signals and relay them to the jboss process
trap "kill -HUP $JBOSS_PID" HUP
More information about the jboss-cvs-commits
mailing list