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 |
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame^] | 15 | java -classpath $CLASSPATH org.onap.dmaap.datarouter.node.NodeMain |
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 |
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame^] | 19 | java -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 |