2014-05-20 15:34:48 -04:00
|
|
|
$OpenBSD: patch-bin_activemq,v 1.5 2014/05/20 19:34:48 jasper Exp $
|
|
|
|
--- bin/activemq.orig Tue Apr 1 02:13:54 2014
|
|
|
|
+++ bin/activemq Thu May 15 22:20:21 2014
|
2013-03-13 12:30:11 -04:00
|
|
|
@@ -29,7 +29,7 @@
|
2013-02-05 10:08:45 -05:00
|
|
|
|
2013-03-13 12:30:11 -04:00
|
|
|
# ------------------------------------------------------------------------
|
|
|
|
# CONFIGURATION
|
|
|
|
-ACTIVEMQ_CONFIGS="/etc/default/activemq $HOME/.activemqrc"
|
2013-03-18 10:46:28 -04:00
|
|
|
+ACTIVEMQ_CONFIGS="${SYSCONFDIR}/activemq.conf $HOME/.activemqrc"
|
2013-02-05 10:08:45 -05:00
|
|
|
|
2013-03-13 12:30:11 -04:00
|
|
|
# Backup invocation parameters
|
|
|
|
COMMANDLINE_ARGS="$@"
|
2014-05-20 15:34:48 -04:00
|
|
|
@@ -38,7 +38,7 @@ EXEC_OPTION=""
|
2013-03-13 12:30:11 -04:00
|
|
|
# For using instances
|
|
|
|
if ( basename $0 | grep "activemq-instance-" > /dev/null);then
|
|
|
|
INST="`basename $0|sed 's/^activemq-instance-//;s/\.sh$//'`"
|
|
|
|
- ACTIVEMQ_CONFIGS="/etc/default/activemq-instance-${INST} $HOME/.activemqrc-instance-${INST}"
|
2013-03-18 10:46:28 -04:00
|
|
|
+ ACTIVEMQ_CONFIGS="${SYSCONFDIR}/activemq-instance-${INST}.conf $HOME/.activemqrc-instance-${INST}"
|
2013-03-13 12:30:11 -04:00
|
|
|
echo "INFO: Using alternative activemq configuration files: $ACTIVEMQ_CONFIGS"
|
|
|
|
fi
|
|
|
|
|
2014-05-20 15:34:48 -04:00
|
|
|
@@ -595,7 +595,6 @@ invoke_stop(){
|
2013-03-13 12:30:11 -04:00
|
|
|
echo
|
|
|
|
echo "INFO: Regular shutdown not successful, sending SIGKILL to process with pid '$PID'"
|
|
|
|
kill -KILL $PID
|
|
|
|
- RET="1"
|
|
|
|
fi
|
|
|
|
elif [ -f "$ACTIVEMQ_PIDFILE" ];then
|
|
|
|
echo "ERROR: No or outdated process id in '$ACTIVEMQ_PIDFILE'"
|
2014-05-20 15:34:48 -04:00
|
|
|
@@ -653,10 +652,10 @@ Tasks provided by the sysv init script:
|
2013-03-13 12:30:11 -04:00
|
|
|
(see next usage section)
|
|
|
|
|
|
|
|
Configuration of this script:
|
|
|
|
- The configuration of this script can be placed on /etc/default/activemq or $HOME/.activemqrc.
|
2013-03-18 10:46:28 -04:00
|
|
|
+ The configuration of this script can be placed on ${SYSCONFDIR}/activemq.conf or $HOME/.activemqrc.
|
2013-03-13 12:30:11 -04:00
|
|
|
To use additional configurations for running multiple instances on the same operating system
|
|
|
|
rename or symlink script to a name matching to activemq-instance-<INSTANCENAME>.
|
|
|
|
- This changes the configuration location to /etc/default/activemq-instance-<INSTANCENAME> and
|
2013-03-18 10:46:28 -04:00
|
|
|
+ This changes the configuration location to ${SYSCONFDIR}/activemq-instance-<INSTANCENAME>.conf and
|
2013-03-13 12:30:11 -04:00
|
|
|
\$HOME/.activemqrc-instance-<INSTANCENAME>. Configuration files in /etc have higher precedence.
|
|
|
|
EOF
|
|
|
|
exit $RET
|