Re: Unix shell script to stop activemq

2010-09-02 Thread Dejan Bosanac
Hi, 1. Reducing the time from 30s to nil may sound like the right thing to do but may actually create a new problem - administrators may now see some kind of problem but delay fixing the underlying problem because the server was killed pretty quickly anyway. Indeed some less observant admins

Re: Unix shell script to stop activemq

2010-09-01 Thread Dejan Bosanac
Thanks James. As promised I improved the stop logic a bit - https://issues.apache.org/activemq/browse/AMQ-2884 Would be great if you could test it. Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action -

Re: Unix shell script to stop activemq

2010-09-01 Thread James Green
Dejan, Two thoughts: 1. Reducing the time from 30s to nil may sound like the right thing to do but may actually create a new problem - administrators may now see some kind of problem but delay fixing the underlying problem because the server was killed pretty quickly anyway. Indeed some less

Re: Unix shell script to stop activemq

2010-08-31 Thread James Green
As promised, I've documented what I did here: http://www.jmkg.co.uk/2010/08/31/installing-activemq-on-ubuntu/ On 29 August 2010 08:28, Romain CHANU romainch...@gmail.com wrote: Hi James, I have the issue as well. Have you found anything solution yet? Cheers, Romain On 25 August 2010

Re: Unix shell script to stop activemq

2010-08-30 Thread Dejan Bosanac
Hi, stop command tries first to connect to the broker using JMX, and waits for 30 sec to be stopped. Only after that it tries to kill it. Perhaps you don't have JMX turned on or the script for some reason cannot connect to it. I opened a Jira issue to improve on this behavior

Re: Unix shell script to stop activemq

2010-08-30 Thread James Green
In short, yes. I needed to uncomment some lines in my /etc/default/activemq to enable JMX. I will post the changes hopefully tomorrow. On 29 August 2010 08:28, Romain CHANU romainch...@gmail.com wrote: Hi James, I have the issue as well. Have you found anything solution yet? Cheers, Romain

Re: Unix shell script to stop activemq

2010-08-29 Thread Romain CHANU
Hi James, I have the issue as well. Have you found anything solution yet? Cheers, Romain On 25 August 2010 00:28, James Green james.mk.gr...@gmail.com wrote: Hi, Using 5.4.0 I've symlinked /etc/init.d/activemq to /opt/activemq/bin/activemq and ran the setup command. I am able to start

Unix shell script to stop activemq

2010-08-24 Thread James Green
Hi, Using 5.4.0 I've symlinked /etc/init.d/activemq to /opt/activemq/bin/activemq and ran the setup command. I am able to start the process fine, but when I come to stop it I have to wait thirty seconds because of this: jam...@blofeld:/opt/activemq/conf$ sudo /etc/init.d/activemq stop INFO: