On Thu, Aug 7, 2008 at 9:40 PM, Janesh S <[EMAIL PROTECTED]> wrote: > > Hi, > > I want to use activemq on a linux server. I have installed activemq 5.1.0. I > could run the server by invoking the activemq executable directly. But I do > not find a way to gracefully shutdown the server as there is no shutdown > script/executable present in the bin directory. > > I read the following document which tells how to make the activemq a service > - http://activemq.apache.org/unix-service.html. But this also needs the > shutdown script. > > I copied the shutdown script from the activemq 4 distribution, but that did > not work. Then I experimented shutting down using the various documented > stop option(s) using - run.jar, activemq-admin etc, but without any success. > > Can someone help me with graceful shutdown?
Use the activemq-admin script that is in the bin directory. It's described here: http://activemq.apache.org/activemq-command-line-tools-reference.html Just run it like this: $ ./bin/activemq-admin stop Just note that you must first enable JMX in the activemq startup script for the activemq-admin script to work correctly. Bruce -- perl -e 'print unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" );' Apache ActiveMQ - http://activemq.org/ Apache Camel - http://activemq.org/camel/ Apache ServiceMix - http://servicemix.org/ Blog: http://bruceblog.org/