Changeset 2785
- Timestamp:
- 02/18/10 11:26:35
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
releases/bedework-3.6/build/quickstart/linux/startjboss
r2782 r2785 10 10 11 11 usage() { 12 echo " $PRG [-heap size] [-newsize size] [-permsize size] " 12 echo " $PRG [-heap size] [-newsize size] [-permgen size] [-debug]" 13 echo " [-debugmodule name]" 13 14 echo "" 14 15 echo " Where:" 15 16 echo "" 16 17 echo " -heap sets the heap size and should be n for bytes" 17 echo " nK for kilo-bytes (e.g. 256 K)"18 echo " nM for mega-bytes (e.g. 256 M)"18 echo " nK for kilo-bytes (e.g. 2560000K)" 19 echo " nM for mega-bytes (e.g. 2560M)" 19 20 echo " nG for giga-bytes (e.g. 1G)" 20 21 echo "" … … 23 24 echo "" 24 25 echo " -permsize sets the permgen size and has the same form as -heap" 25 echo " The value should probably not be less than 256M"26 echo " The value should probably not be less than 256M" 26 27 echo "" 28 echo " -debug sets the logging level to DEBUG" 29 echo "" 30 echo " -debugmodule sets the logging level for module name to DEBUG" 31 echo " This sets a system variable org.bedework.loglevel.<name> which" 32 echo " may be referenced by the log4j configuration" 27 33 echo "" 28 34 echo "Default settings:" … … 31 37 echo "permsize = $permsize" 32 38 echo "" 33 echo ""34 39 } 35 40 … … 37 42 newsize="330M" 38 43 permsize="256M" 44 45 LOG_THRESHOLD="-Djboss.server.log.threshold=INFO" 46 LOG_LEVELS="" 39 47 40 48 while [ "$1" != "" ] … … 61 69 shift 62 70 permsize="$1" 71 shift 72 ;; 73 -debug) 74 shift 75 LOG_THRESHOLD="-Djboss.server.log.threshold=DEBUG" 76 ;; 77 -debugmodule) 78 shift 79 LOG_LEVELS="$LOG_LEVELS -Dorg.bedework.loglevel.$1=DEBUG" 63 80 shift 64 81 ;; … … 91 108 ACTIVEMQ_DIRPREFIX="-Dorg.apache.activemq.default.directory.prefix=$JBOSS_DATA_DIR/" 92 109 93 LOG_THRESHOLD="-Djboss.server.log.threshold=DEBUG"94 95 110 BW_DATA_DIR=$JBOSS_DATA_DIR/bedework 96 111 BW_DATA_DIR_DEF=-Dorg.bedework.data.dir=$BW_DATA_DIR/ … … 100 115 export JAVA_OPTS="$JAVA_OPTS -XX:PermSize=$permsize -XX:MaxPermSize=$permsize" 101 116 102 RUN_CMD="./$JBOSS_VERSION/bin/run.sh -c $JBOSS_CONFIG $JBOSS_BIND $JBOSS_PORTS $LOG_THRESHOLD $ ACTIVEMQ_DIRPREFIX $BW_DATA_DIR_DEF"117 RUN_CMD="./$JBOSS_VERSION/bin/run.sh -c $JBOSS_CONFIG $JBOSS_BIND $JBOSS_PORTS $LOG_THRESHOLD $LOG_LEVELS $ACTIVEMQ_DIRPREFIX $BW_DATA_DIR_DEF" 103 118 104 119 echo $RUN_CMD
