From 33dbc2cc1d7f74c8b9bfa82878e60ef9bd7b890c Mon Sep 17 00:00:00 2001 From: Guangrong Fu Date: Sat, 2 Sep 2017 23:52:14 +0800 Subject: Add ActiveMQ Start ActiveMQ before starting the Holmes service Change-Id: Ic22f6dbf9643ffd7f19618f77215c613a622db02 Issue-ID: HOLMES-39 Signed-off-by: Guangrong Fu --- engine-d-standalone/src/main/assembly/bin/run.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/engine-d-standalone/src/main/assembly/bin/run.sh b/engine-d-standalone/src/main/assembly/bin/run.sh index 9948a04..6935858 100644 --- a/engine-d-standalone/src/main/assembly/bin/run.sh +++ b/engine-d-standalone/src/main/assembly/bin/run.sh @@ -31,13 +31,19 @@ echo @JAVA_OPTS@ $JAVA_OPTS class_path="$main_path/:$main_path/holmes-engine-d.jar" echo @class_path@ $class_path +/home/activemq/apache-activemq-5.9.0/bin/activemq start + sed -i "s|url:.*|url: jdbc:mysql://$URL_JDBC/holmes|" "$main_path/conf/engine-d.yml" -#ActiveMQ IP Configurtion -#sed -i "s|brokerIp:.*|brokerIp: $BROKER_IP|" "$main_path/conf/engine-d.yml" export SERVICE_IP=`hostname -i` echo SERVICE_IP=${SERVICE_IP} +#ActiveMQ IP Configurtion +sed -i "s|brokerIp:.*|brokerIp: $SERVICE_IP|" "$main_path/conf/engine-d.yml" + +cat "$main_path/conf/engine-d.yml" + + "$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.holmes.engine.EngineDActiveApp server "$main_path/conf/engine-d.yml" -- cgit 1.2.3-korg