ubuntu@claw:/opt/activemq/bin$ sudo ./activemq status
INFO: Loading '/opt/activemq//bin/env'
INFO: Using java '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'
ActiveMQ not running
Error publishing message: Could not connect to a broker (Host: localhost)
ubuntu@claw:/opt/activemq/bin$ sudo ./activemq start
INFO: Loading '/opt/activemq//bin/env'
INFO: Using java '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/opt/activemq//data/activemq.pid' (pid '
Confirmed, I'm adding this to my work on #572
@ruebot set it up with an apt-get install and I'm surprised it doesn't set the appropriate runlevel.
Oh well, hopefully it's an easy fix.
No he didn't use apt-get install
https://github.com/Islandora-CLAW/claw_vagrant/blob/20ce269ae52b215a0eb7b673bddbd0833a610d69/scripts/activemq.sh
@dannylamb the apt install version was bad. I used their recommended install and they say this: http://activemq.apache.org/unix-service.html
Ah, ok. I'm just confused. Carry on.
What @ruebot said. I just stuck 3 lines at the bottom of the activemq.sh
ln -snf /opt/activemq/bin/activemq /etc/init.d/activemq
update-rc.d activemq defaults
service activemq start
I've tested this in @whikloj 's work for openseadragon and I can verify it works. We'll take care of it in the vagrant PR for that work.
Most helpful comment
What @ruebot said. I just stuck 3 lines at the bottom of the activemq.sh