activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Green <james.mk.gr...@gmail.com>
Subject Unix shell script to stop activemq
Date Tue, 24 Aug 2010 16:28:55 GMT
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

Mime
View raw message