Index: releases/bedework-3.6/build/quickstart/linux/startjboss =================================================================== --- releases/bedework-3.6/build/quickstart/linux/startjboss (revision 2782) +++ releases/bedework-3.6/build/quickstart/linux/startjboss (revision 2785) @@ -10,11 +10,12 @@ usage() { - echo " $PRG [-heap size] [-newsize size] [-permsize size] " + echo " $PRG [-heap size] [-newsize size] [-permgen size] [-debug]" + echo " [-debugmodule name]" echo "" echo " Where:" echo "" echo " -heap sets the heap size and should be n for bytes" - echo " nK for kilo-bytes (e.g. 256K)" - echo " nM for mega-bytes (e.g. 256M)" + echo " nK for kilo-bytes (e.g. 2560000K)" + echo " nM for mega-bytes (e.g. 2560M)" echo " nG for giga-bytes (e.g. 1G)" echo "" @@ -23,6 +24,11 @@ echo "" echo " -permsize sets the permgen size and has the same form as -heap" - echo " The value should probably not be less than 256M" + echo " The value should probably not be less than 256M" echo "" + echo " -debug sets the logging level to DEBUG" + echo "" + echo " -debugmodule sets the logging level for module name to DEBUG" + echo " This sets a system variable org.bedework.loglevel. which" + echo " may be referenced by the log4j configuration" echo "" echo "Default settings:" @@ -31,5 +37,4 @@ echo "permsize = $permsize" echo "" - echo "" } @@ -37,4 +42,7 @@ newsize="330M" permsize="256M" + +LOG_THRESHOLD="-Djboss.server.log.threshold=INFO" +LOG_LEVELS="" while [ "$1" != "" ] @@ -61,4 +69,13 @@ shift permsize="$1" + shift + ;; + -debug) + shift + LOG_THRESHOLD="-Djboss.server.log.threshold=DEBUG" + ;; + -debugmodule) + shift + LOG_LEVELS="$LOG_LEVELS -Dorg.bedework.loglevel.$1=DEBUG" shift ;; @@ -91,6 +108,4 @@ ACTIVEMQ_DIRPREFIX="-Dorg.apache.activemq.default.directory.prefix=$JBOSS_DATA_DIR/" -LOG_THRESHOLD="-Djboss.server.log.threshold=DEBUG" - BW_DATA_DIR=$JBOSS_DATA_DIR/bedework BW_DATA_DIR_DEF=-Dorg.bedework.data.dir=$BW_DATA_DIR/ @@ -100,5 +115,5 @@ export JAVA_OPTS="$JAVA_OPTS -XX:PermSize=$permsize -XX:MaxPermSize=$permsize" -RUN_CMD="./$JBOSS_VERSION/bin/run.sh -c $JBOSS_CONFIG $JBOSS_BIND $JBOSS_PORTS $LOG_THRESHOLD $ACTIVEMQ_DIRPREFIX $BW_DATA_DIR_DEF" +RUN_CMD="./$JBOSS_VERSION/bin/run.sh -c $JBOSS_CONFIG $JBOSS_BIND $JBOSS_PORTS $LOG_THRESHOLD $LOG_LEVELS $ACTIVEMQ_DIRPREFIX $BW_DATA_DIR_DEF" echo $RUN_CMD