[jboss-cvs] JBossAS SVN: r101678 - trunk/main/src/bin.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Mar 1 12:24:15 EST 2010


Author: mladen.turk at jboss.com
Date: 2010-03-01 12:24:14 -0500 (Mon, 01 Mar 2010)
New Revision: 101678

Modified:
   trunk/main/src/bin/run.sh
Log:
Add JBOSS_STDOUT variable which if present will redirect the stdout/stderr. Defaults to /dev/null

Modified: trunk/main/src/bin/run.sh
===================================================================
--- trunk/main/src/bin/run.sh	2010-03-01 17:23:54 UTC (rev 101677)
+++ trunk/main/src/bin/run.sh	2010-03-01 17:24:14 UTC (rev 101678)
@@ -230,11 +230,13 @@
          org.jboss.Main "$@"
       JBOSS_STATUS=$?
    else
+      JBOSS_STDOUT="${JBOSS_STDOUT:-/dev/null}"
       # Execute the JVM in the background
       "$JAVA" $JAVA_OPTS \
          -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
          -classpath "$JBOSS_CLASSPATH" \
-         org.jboss.Main "$@" &
+         org.jboss.Main "$@" \
+         >> "$JBOSS_STDOUT" 2>&1 &
       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