Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 1 | #!/bin/bash |
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 2 | LIB=/opt/app/datartr/lib |
| 3 | ETC=/opt/app/datartr/etc |
| 4 | echo "this is LIB" $LIB |
| 5 | echo "this is ETC" $ETC |
| 6 | mkdir -p /opt/app/datartr/logs |
| 7 | mkdir -p /opt/app/datartr/spool |
| 8 | mkdir -p /opt/app/datartr/spool/f |
| 9 | mkdir -p /opt/app/datartr/spool/n |
| 10 | mkdir -p /opt/app/datartr/spool/s |
| 11 | CLASSPATH=$ETC |
| 12 | for FILE in `find $LIB -name *.jar`; do |
| 13 | CLASSPATH=$CLASSPATH:$FILE |
| 14 | done |
efiacor | adb2ad2 | 2019-10-23 15:31:43 +0100 | [diff] [blame] | 15 | java -classpath $CLASSPATH org.onap.dmaap.datarouter.node.NodeRunner |
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 16 | |
| 17 | runner_file="$LIB/datarouter-node-jar-with-dependencies.jar" |
| 18 | echo "Starting using" $runner_file |
efiacor | 1ccd9c3 | 2019-10-08 16:24:28 +0100 | [diff] [blame] | 19 | java -Dcom.att.eelf.logging.file=/opt/app/datartr/etc/logback.xml -Dcom.att.eelf.logging.path=/root \ |
| 20 | -Dorg.onap.dmaap.datarouter.node.properties=/opt/app/datartr/etc/node.properties -jar $runner_file |