mirror of https://github.com/apache/activemq.git
AMQ-6930 provide options to allow stdout/stderr of activemq process to be redirect to a file using append mode
(cherry picked from commit f3a8e88206
)
This commit is contained in:
parent
84126d8a7a
commit
73d90b1b47
|
@ -334,7 +334,7 @@ invokeJar(){
|
|||
-Dactivemq.conf=\"${ACTIVEMQ_CONF}\" \
|
||||
-Dactivemq.data=\"${ACTIVEMQ_DATA}\" \
|
||||
$ACTIVEMQ_CYGWIN \
|
||||
-jar \"${ACTIVEMQ_HOME}/bin/activemq.jar\" $COMMANDLINE_ARGS >/dev/null 2>&1 &
|
||||
-jar \"${ACTIVEMQ_HOME}/bin/activemq.jar\" $COMMANDLINE_ARGS >> $ACTIVEMQ_OUT 2>&1 &
|
||||
RET=\"\$?\"; APID=\"\$!\";
|
||||
echo \$APID > "${PIDFILE}";
|
||||
echo \"INFO: pidfile created : '${PIDFILE}' (pid '\$APID')\";exit \$RET" $DOIT_POSTFIX
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
# Configuration file for running Apache Active MQ as standalone provider.
|
||||
#
|
||||
# This file overwrites the predefined settings of the sysv init-script.
|
||||
# You can also use alternate location for default settings -
|
||||
# You can also use alternate location for default settings -
|
||||
# invoke the init-script without a argument an review help section "Configuration of this script"
|
||||
# /etc/default/activemq <activemq user home>/.activemqrc <activemq installation dir>/bin/env
|
||||
|
||||
|
@ -37,6 +37,10 @@ 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
|
||||
|
||||
if [ -z "$ACTIVEMQ_OUT" ]; then
|
||||
ACTIVEMQ_OUT="/dev/null"
|
||||
fi
|
||||
|
||||
# Uncomment to enable audit logging
|
||||
#ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS -Dorg.apache.activemq.audit=true"
|
||||
|
||||
|
|
Loading…
Reference in New Issue