summaryrefslogtreecommitdiff
path: root/java/broker/bin
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2009-09-07 12:17:09 +0000
committerMartin Ritchie <ritchiem@apache.org>2009-09-07 12:17:09 +0000
commit3cf939a0994b4122cedbaaed4dc6263ee7710ac5 (patch)
tree1b9e5f4b44d9ba438393f21edd1d0c5f107c5099 /java/broker/bin
parentc13e8d2649213963955b16366a95a88aa1083d25 (diff)
downloadqpid-python-3cf939a0994b4122cedbaaed4dc6263ee7710ac5.tar.gz
QPID-2085 : Set append to true by default. Added QPID_LOG_APPEND variable to control setting from the environment
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@812103 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/broker/bin')
-rwxr-xr-xjava/broker/bin/qpid-server9
1 files changed, 7 insertions, 2 deletions
diff --git a/java/broker/bin/qpid-server b/java/broker/bin/qpid-server
index e5a9e998e2..738fc6e084 100755
--- a/java/broker/bin/qpid-server
+++ b/java/broker/bin/qpid-server
@@ -26,14 +26,19 @@ fi
# Set classpath to include Qpid jar with all required jars in manifest
QPID_LIBS=$QPID_HOME/lib/qpid-all.jar:$QPID_HOME/lib/bdbstore-launch.jar
+# Default Log4j to append to its log file
+if [ -z "$QPID_LOG_APPEND" ]; then
+ export QPID_LOG_APPEND="true"
+fi
+
# Set other variables used by the qpid-run script before calling
export JAVA=java \
JAVA_VM=-server \
JAVA_MEM=-Xmx1024m \
JAVA_GC="-XX:+UseConcMarkSweepGC -XX:+HeapDumpOnOutOfMemoryError" \
QPID_CLASSPATH=$QPID_LIBS \
- QPID_RUN_LOG=2
+ QPID_RUN_LOG=2
-QPID_OPTS="$QPID_OPTS -Damqj.read_write_pool_size=32"
+QPID_OPTS="$QPID_OPTS -Damqj.read_write_pool_size=32 -DQPID_LOG_APPEND=$QPID_LOG_APPEND"
. qpid-run org.apache.qpid.server.Main "$@"