[jboss-cvs] JBossAS SVN: r101711 - trunk/main/src/bin.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Mar 2 07:21:46 EST 2010
Author: mladen.turk at jboss.com
Date: 2010-03-02 07:21:46 -0500 (Tue, 02 Mar 2010)
New Revision: 101711
Modified:
trunk/main/src/bin/run.sh
Log:
Revert eval logic. It launches subshell so $! is faulty
Modified: trunk/main/src/bin/run.sh
===================================================================
--- trunk/main/src/bin/run.sh 2010-03-02 11:15:30 UTC (rev 101710)
+++ trunk/main/src/bin/run.sh 2010-03-02 12:21:46 UTC (rev 101711)
@@ -224,19 +224,17 @@
while true; do
if [ "x$LAUNCH_JBOSS_IN_BACKGROUND" = "x" ]; then
# Execute the JVM in the foreground
- eval "$JAVA" $JAVA_OPTS \
+ "$JAVA" $JAVA_OPTS \
-Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-classpath "$JBOSS_CLASSPATH" \
org.jboss.Main "$@"
JBOSS_STATUS=$?
else
- JBOSS_STDOUT="${JBOSS_STDOUT:-/dev/null}"
# Execute the JVM in the background
- eval "$JAVA" $JAVA_OPTS \
+ "$JAVA" $JAVA_OPTS \
-Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-classpath "$JBOSS_CLASSPATH" \
- org.jboss.Main "$@" \
- >> "$JBOSS_STDOUT" 2>&1 &
+ 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