activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadr...@apache.org
Subject [1/6] activemq git commit: https://issues.apache.org/jira/browse/AMQ-5378 - document shell script configuration and enable using environment variables
Date Thu, 12 Feb 2015 23:22:20 GMT
Repository: activemq
Updated Branches:
  refs/heads/activemq-5.11.x 666f6f3b3 -> e5c5a821c


https://issues.apache.org/jira/browse/AMQ-5378 - document shell script configuration and enable
using environment variables


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/b997bd48
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/b997bd48
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/b997bd48

Branch: refs/heads/activemq-5.11.x
Commit: b997bd480deb9d14c492a0eb7a2cf2eff2021c14
Parents: 666f6f3
Author: Dejan Bosanac <dejan@nighttale.net>
Authored: Mon Feb 2 11:14:09 2015 +0100
Committer: Hadrian Zbarcea <hadrian@apache.org>
Committed: Thu Feb 12 18:18:13 2015 -0500

----------------------------------------------------------------------
 assembly/src/release/bin/activemq |  6 ++++++
 assembly/src/release/bin/env      | 18 ++++++++++++------
 2 files changed, 18 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/b997bd48/assembly/src/release/bin/activemq
----------------------------------------------------------------------
diff --git a/assembly/src/release/bin/activemq b/assembly/src/release/bin/activemq
index ce94aef..100e0cd 100755
--- a/assembly/src/release/bin/activemq
+++ b/assembly/src/release/bin/activemq
@@ -24,6 +24,12 @@
 # See also http://activemq.apache.org/activemq-command-line-tools-reference.html
 # for additional commandline arguments
 #
+# System variables for this script, like ACTIVEMQ_OPTS and ACTIVEMQ_OPTS_MEMORY,
+# can be configured in 'env' script located in this directory.
+#
+# For more information on configuring the script, see http://activemq.apache.org/unix-shell-script.html
+#
+#
 # Authors:
 # Marc Schoechlin <ms@256bit.org>
 

http://git-wip-us.apache.org/repos/asf/activemq/blob/b997bd48/assembly/src/release/bin/env
----------------------------------------------------------------------
diff --git a/assembly/src/release/bin/env b/assembly/src/release/bin/env
index 74c5de1..4369293 100644
--- a/assembly/src/release/bin/env
+++ b/assembly/src/release/bin/env
@@ -16,14 +16,16 @@
 # limitations under the License.
 # ------------------------------------------------------------------------
 # Configuration file for running Apache Active MQ as standalone provider
-#
-# This file overwrites the predefined settings of the sysv init-script
 
 
 # Set jvm memory configuration
-ACTIVEMQ_OPTS_MEMORY="-Xms1G -Xmx1G"
+if [ -z "$ACTIVEMQ_OPTS_MEMORY" ] ; then
+    ACTIVEMQ_OPTS_MEMORY="-Xms1G -Xmx1G"
+fi
 
-ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS_MEMORY -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=$ACTIVEMQ_CONF/login.config"
+if [ -z "$ACTIVEMQ_OPTS" ] ; then
+    ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS_MEMORY -Djava.util.logging.config.file=logging.properties
-Djava.security.auth.login.config=$ACTIVEMQ_CONF/login.config"
+fi
 
 # Uncomment to enable audit logging
 #ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS -Dorg.apache.activemq.audit=true"
@@ -65,7 +67,9 @@ ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote"
 ACTIVEMQ_SUNJMX_CONTROL=""
 
 # Specify the queue manager URL for using "browse" option of sysv initscript
-ACTIVEMQ_QUEUEMANAGERURL="--amqurl tcp://localhost:61616"
+if [ -z "$ACTIVEMQ_QUEUEMANAGERURL" ]; then
+    ACTIVEMQ_QUEUEMANAGERURL="--amqurl tcp://localhost:61616"
+fi
 
 # Set additional JSE arguments
 ACTIVEMQ_SSL_OPTS=""
@@ -75,7 +79,9 @@ ACTIVEMQ_SSL_OPTS=""
 
 # ActiveMQ tries to shutdown the broker by jmx,
 # after a specified number of seconds send SIGKILL
-ACTIVEMQ_KILL_MAXSECONDS=90
+if [ -z "$ACTIVEMQ_KILL_MAXSECONDS" ]; then
+    ACTIVEMQ_KILL_MAXSECONDS=30
+fi
 
 # Active MQ installation dirs
 # ACTIVEMQ_HOME="<Installationdir>/"


Mime
View raw message