blob: 2384d6df4e7ccb985e041dbeaaa4f23d57c6f589 [file] [log] [blame]
Fiachra Corcoranfa1da982018-07-26 07:23:34 +01001#!/bin/bash
sg481naaf2df82017-08-03 17:56:38 -04002LIB=/opt/app/datartr/lib
3ETC=/opt/app/datartr/etc
4echo "this is LIB" $LIB
5echo "this is ETC" $ETC
6mkdir -p /opt/app/datartr/logs
7mkdir -p /opt/app/datartr/spool
8mkdir -p /opt/app/datartr/spool/f
9mkdir -p /opt/app/datartr/spool/n
10mkdir -p /opt/app/datartr/spool/s
11CLASSPATH=$ETC
12for FILE in `find $LIB -name *.jar`; do
13 CLASSPATH=$CLASSPATH:$FILE
14done
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010015java -classpath $CLASSPATH org.onap.dmaap.datarouter.node.NodeMain
sg481naaf2df82017-08-03 17:56:38 -040016
17runner_file="$LIB/datarouter-node-jar-with-dependencies.jar"
18echo "Starting using" $runner_file
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010019java -Dcom.att.eelf.logging.file==/opt/app/datartr/etc/logback.xml -Dcom.att.eelf.logging.path=/ -Dorg.onap.dmaap.datarouter.node.ConfigFile==/opt/app/datartr/etc/node.properties -jar $runner_file