Your message dated Wed, 26 Oct 2011 21:17:26 +0000
with message-id <[email protected]>
and subject line Bug#645241: fixed in activemq 5.5.0+dfsg-4
has caused the Debian Bug report #645241,
regarding activemq: Init-Script with console startup - useful for debugging
purposes
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
645241: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=645241
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: activemq
Version: 5.5.0+dfsg-3
Severity: wishlist
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hello,
I have added an console startup feature to the init script of ActiveMQ.
This patch allows you to start any ActiveMQ instance in foreground - if the
instance is running with init script will stop it before.
It's very useful for debugging an instance.
Feel free to include it.
Thanks,
Jonas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAEBCAAGBQJOlzJ4AAoJEPBM7/YBbP/Qj4YP/094FKMe3Nd3kdDQIdwiADWR
9INokLT8I+J3+zYkxQfaR2AO0AGktA66G2EwBDwXUrK/nzOXF5Xdmc0muXrljNKQ
/3m22GAuUtF/K0kU+0jcDt3V+YDEhEXhA3uoi+OFHE74ebXPZ66IGKbI7cRVch7M
qTDoDpc+8weR3udcElGAfqeyZj7psj7UrEjVaFXUDraXQXqrEqs5/qFPVcsXOMHu
5JJLn3v6I9m2ZOzv6txkANpB61ZKB5cB5//RAm1YVXLc0DiSFbZHhW2TqyFyd2RP
3qAyHqyYNHYGJjC115cp3FKSwRDY8EcpWhvkdkzEWIcx6j5X7s6KJ4CFQox7jeqQ
4vdStVhv1Arqokl9YfGesjOjpjxcog5dTdfKxl0sJY3Uwt7WkPHsjZFy2gcUO9wT
Tj2Em7K4cpoPBGQrT3uo/ARobPLpubRSV4UHl7CDl4Fr4AZ3TjcQsBC2XnnPOfVa
xB+WevjbtvRIPfeFQdMOxELwA0HY373DP8Pf69s+dUUoCeb946JRjU8rJ16Yrvec
SnV89NcT0tnlkkUMf+t6xFrfhTp2E3mzzniazGMVcmrFF25Zaip2xOihpry0ryza
PaES2X8PCa2IOLqvlfWQgUb+fll9dYJ9mbeb1lNYoTgn0sqH9NZaz10tgoJnvauj
kYqiF2fTfbAZUmrir99D
=S2kw
-----END PGP SIGNATURE-----
diff --git a/debian/activemq.README.Debian b/debian/activemq.README.Debian
index c71d82a..9307a78 100644
--- a/debian/activemq.README.Debian
+++ b/debian/activemq.README.Debian
@@ -31,6 +31,17 @@ Enable it:
Start it :
invoke-rc.d activemq start
+
+Debug an ActiveMQ instance
+--------------------------
+
+You can start any ActiveMQ instance in foreground for debugging.
+
+Start instance `foo` in forground:
+
+ # /etc/init.d/activemq console foo
+
+
Setup a new ActiveMQ instance
-----------------------------
diff --git a/debian/activemq.init b/debian/activemq.init
index 3d4a45b..cc57c68 100644
--- a/debian/activemq.init
+++ b/debian/activemq.init
@@ -141,23 +141,32 @@ start_servers() {
done
}
+
+# Stops an running Instance
+stop_server() {
+ INSTANCE=$1
+ ACTIVEMQ_PIDFILE="/var/run/activemq/$INSTANCE.pid"
+
+ start-stop-daemon --stop --quiet --pidfile $ACTIVEMQ_PIDFILE \
+ --user $ACTIVEMQ_USER \
+ --name java --startas $DAEMON -- stop
+ if running; then
+ force_stop
+ fi
+ if running; then
+ log_progress_msg "(failed)"
+ else
+ log_progress_msg "(stopped)"
+ fi
+}
+
# Stop the process using the wrapper
stop_servers() {
for INSTANCE in `ls /var/run/activemq/`; do
INSTANCE=$(echo $INSTANCE | sed '[email protected]@@')
- ACTIVEMQ_PIDFILE="/var/run/activemq/$INSTANCE.pid"
log_progress_msg "$INSTANCE"
- start-stop-daemon --stop --quiet --pidfile $ACTIVEMQ_PIDFILE \
- --user $ACTIVEMQ_USER \
- --name java --startas $DAEMON -- stop
- if running; then
- force_stop
- fi
- if running; then
- log_progress_msg "(failed)"
- else
- log_progress_msg "(stopped)"
- fi
+
+ stop_server "$INSTANCE"
done
}
@@ -182,6 +191,46 @@ force_stop() {
case "$1" in
+ console)
+ INSTANCE=$2
+ if [ ! -z $INSTANCE ]; then
+ log_daemon_msg "Starting with Console $DESC " "$INSTANCE"
+ if [ -r "${ACTIVEMQ_INSTANCES_ENABLED}/${INSTANCE}/activemq.xml" ]; then
+ ACTIVEMQ_PIDFILE="/var/run/activemq/$INSTANCE.pid"
+ ACTIVEMQ_CONFIG_DIR="$ACTIVEMQ_INSTANCES_ENABLED/$INSTANCE"
+
+ if [ -f $ACTIVEMQ_PIDFILE ]; then
+ stop_server "$INSTANCE"
+ fi
+
+ export INSTANCE
+ export ACTIVEMQ_USER
+ export ACTIVEMQ_PIDFILE
+ export ACTIVEMQ_HOME=/usr/share/activemq
+ export ACTIVEMQ_CONFIG_DIR
+
+ # Import global configuration
+ . /usr/share/activemq/activemq-options
+ # Import per instance configuration
+ [ -r "${ACTIVEMQ_CONFIG_DIR}/options" ] && . ${ACTIVEMQ_CONFIG_DIR}/options
+
+ ACTIVEMQ_ARGS=$(echo $ACTIVEMQ_ARGS | sed 's/start/console/')
+
+ start-stop-daemon --start --pidfile $ACTIVEMQ_PIDFILE \
+ --chuid $ACTIVEMQ_USER \
+ --name java --startas $DAEMON -- $ACTIVEMQ_ARGS
+ else
+ echo "File ${ACTIVEMQ_INSTANCES_ENABLED}/${BROKER}/activemq.xml not found."
+ exit 1
+ fi
+ else
+ echo "Usage: $0 console foo"
+ echo "This will start instance foo in foreground useful for debugging purposes."
+ exit 1
+ fi
+
+ log_end_msg 0
+ ;;
start)
log_daemon_msg "Starting $DESC " "$NAME"
start_servers
@@ -220,7 +269,7 @@ case "$1" in
log_warning_msg "cannot re-read the config file (use restart)."
;;
*)
- echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2
+ echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status|console}" >&2
exit 1
;;
esac
--- End Message ---
--- Begin Message ---
Source: activemq
Source-Version: 5.5.0+dfsg-4
We believe that the bug you reported is fixed in the latest version of
activemq, which is due to be installed in the Debian FTP archive:
activemq_5.5.0+dfsg-4.debian.tar.gz
to main/a/activemq/activemq_5.5.0+dfsg-4.debian.tar.gz
activemq_5.5.0+dfsg-4.dsc
to main/a/activemq/activemq_5.5.0+dfsg-4.dsc
activemq_5.5.0+dfsg-4_all.deb
to main/a/activemq/activemq_5.5.0+dfsg-4_all.deb
libactivemq-java-doc_5.5.0+dfsg-4_all.deb
to main/a/activemq/libactivemq-java-doc_5.5.0+dfsg-4_all.deb
libactivemq-java_5.5.0+dfsg-4_all.deb
to main/a/activemq/libactivemq-java_5.5.0+dfsg-4_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Damien Raude-Morvan <[email protected]> (supplier of updated activemq package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Wed, 26 Oct 2011 21:13:20 +0200
Source: activemq
Binary: libactivemq-java libactivemq-java-doc activemq
Architecture: source all
Version: 5.5.0+dfsg-4
Distribution: unstable
Urgency: low
Maintainer: Debian Java Maintainers
<[email protected]>
Changed-By: Damien Raude-Morvan <[email protected]>
Description:
activemq - Java message broker - server
libactivemq-java - Java message broker core libraries
libactivemq-java-doc - Java message broker core libraries - documentation
Closes: 645241
Changes:
activemq (5.5.0+dfsg-4) unstable; urgency=low
.
* d/activemq.init: Merge change proposed by Jonas Genannt to allow
console startup, useful for debugging purposes. (Closes: #645241).
Checksums-Sha1:
7815e4e8da11b13f20ad32b8edfd223f2f5cd4b5 3318 activemq_5.5.0+dfsg-4.dsc
6248c26aeaa1c0c5cf9322b14e6f214e32af0a01 15561
activemq_5.5.0+dfsg-4.debian.tar.gz
6d7ea15c9af92a0cd0efee2858a24f8c5eef219b 3614396
libactivemq-java_5.5.0+dfsg-4_all.deb
5b4164ebaa70ffc04d97459eabe84633499242e3 11534448
libactivemq-java-doc_5.5.0+dfsg-4_all.deb
7c6d82fd02b8ea9fdd812621ad33533848514691 52558 activemq_5.5.0+dfsg-4_all.deb
Checksums-Sha256:
e180752a388241a0de469f946acf1ae7bcefb6e86b4f7977f64858ff5f22801b 3318
activemq_5.5.0+dfsg-4.dsc
fbb6a3e1e8a93d722bb3a3a05e4d57c93b96d7a0a677cc7f697116abaaf019d9 15561
activemq_5.5.0+dfsg-4.debian.tar.gz
39265e50757f7482d388b57aae445b9dd3666c218b659c1ae8df6d9236195ef7 3614396
libactivemq-java_5.5.0+dfsg-4_all.deb
14da44261968ed794679387eb30fb15a3a9235e1c62a29cb3934b4896d5bcb95 11534448
libactivemq-java-doc_5.5.0+dfsg-4_all.deb
d1f1b28389207edc9932cd84310b048ab8b27a2e795d8372ecca2c8690714679 52558
activemq_5.5.0+dfsg-4_all.deb
Files:
140e86add6f3a5f8e83d7003f8c27770 3318 java optional activemq_5.5.0+dfsg-4.dsc
b88191b12fa650d434357e85b0a9f35b 15561 java optional
activemq_5.5.0+dfsg-4.debian.tar.gz
c07a9bb41f7a3ad03f9eafcafb8f2818 3614396 java optional
libactivemq-java_5.5.0+dfsg-4_all.deb
0d8fd3324b784569c01812856ae7a8c3 11534448 doc optional
libactivemq-java-doc_5.5.0+dfsg-4_all.deb
0df91f0cd88cd5866032c778d878556d 52558 java optional
activemq_5.5.0+dfsg-4_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQIcBAEBCAAGBQJOqHY8AAoJEHXiDM0z50n8+5EP/3Z7EujGf/LqrTcOg4zp0tzZ
2d/WQw0mwJSjYSAGlRhOhhrZzmsOcxvD1kGg3kN06Aj6d2ogfV0ZUHAqZC+KRqrF
gCFvi8tqf5mx0o0Egb/pA6M9OYHbgjE3IhQKYw8309lMMBKvlMvtuWmN3p6GwvW0
fBOutXB8xYZslDPdPlkZsaU6pcG1VeD83yyswVU20fT7y0BOx25r0woR1yXWNEWv
H/K6Z0eKrMs1AaVmdOFm4GpZe7yqPdfuoik7yg+fEC9rFw4la/EbZbGZVE3EtDTm
KmNJAYCypzNI1VEeF//uhvRESo3O+G9ibPApXVpa/QwfeGZkZT1Ojr/SIYgfsZVc
GOWJg7G84hmRDUFYrwA1TAgVG/KR21/JCoH2gEkoGLb0S6n89k5kQCg13yWWTpgZ
o/e+dZ9t7J0iFGMtADnj5iIa60KsT6cwkYmx/sqdsgRCe+ldzDYhBSN4OXD0iByO
w3visKBOm37+ry8M3i5/5s967ossvuQBri7GZ6XcVQ9a1Sk3mzpv7IvI4GB3Oix7
XHpaYcRig46BOV0x+uo0s0pM7VL0GJ0/qPgpCfsU/PGpzoSTBeTKQWQarKiZZg99
rjKpM5Vd04PUQnFR/8k2L8RAvJc7ezxZNLRMFI72H2Q3zKOdxtm/Q5S3liQLT34V
ZfCF5bq0ZZcrpD5fUCd8
=Xutu
-----END PGP SIGNATURE-----
--- End Message ---