[prev in list] [next in list] [prev in thread] [next in thread] 

List:       activemq-users
Subject:    Re: Unix shell script to stop activemq
From:       James Green <james.mk.green () gmail ! com>
Date:       2010-08-31 21:03:51
Message-ID: AANLkTikUcEGnKpjtufD_GPESa4qEdCxJukk57SZJi4iQ () mail ! gmail ! com
[Download RAW message or body]

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 <romainchanu@gmail.com> wrote:
> 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.green@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 the process fine, but when I come to stop it I have
>> to wait thirty seconds because of this:
>> jamesg@blofeld:/opt/activemq/conf$ sudo /etc/init.d/activemq stop
>> INFO: Loading '/etc/default/activemq'
>> INFO: Using java '/usr/bin/java'
>> INFO: changing to user 'activemq' to invoke java
>> INFO: Waiting at least 30 seconds for regular process termination of
>> pid '25806' : Java Runtime: Sun Microsystems Inc. 1.6.0_18
>> /usr/lib/jvm/java-6-openjdk/jre
>>  Heap sizes: current=15872k  free=15453k  max=506816k
>>    JVM args: -Dactivemq.classpath=/opt/activemq/conf;
>> -Dactivemq.home=/opt/activemq -Dactivemq.base=/opt/activemq
>> ACTIVEMQ_HOME: /opt/activemq
>> ACTIVEMQ_BASE: /opt/activemq
>> ERROR: java.lang.RuntimeException: Failed to execute stop task.
>> Reason: java.io.IOException: Failed to retrieve RMIServer stub:
>> javax.naming.ServiceUnavailableException [Root exception is
>> java.rmi.ConnectException: Connection refused to host: 127.0.0.1;
>> nested exception is:
>>        java.net.ConnectException: Connection refused]
>> java.lang.RuntimeException: Failed to execute stop task. Reason:
>> java.io.IOException: Failed to retrieve RMIServer stub:
>> javax.naming.ServiceUnavailableException [Root exception is
>> java.rmi.ConnectException: Connection refused to host: 127.0.0.1;
>> nested exception is:
>>        java.net.ConnectException: Connection refused]
>>
>> Etc.
>>
>> I've made attempts at tweaking things according to the web
>> instructions without any changes being noticed.
>>
>> So what default settings do need changing for a Linux distribution to
>> elegantly shut down the server?
>>
>> James
>>
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic