summaryrefslogtreecommitdiffstats
path: root/datarouter-subscriber/src/main/resources/docker/startup.sh
blob: fb5610d7ba3343ff779bc930f3d73860e9e65c7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
LIB=/opt/app/subscriber/lib
ETC=/opt/app/subscriber/etc
CLASSPATH=$ETC
for FILE in `find $LIB -name *.jar`; do
  CLASSPATH=$CLASSPATH:$FILE
done
java -classpath $CLASSPATH  org.onap.dmaap.datarouter.subscriber.SubscriberMain

runner_file="$LIB/subscriber-jar-with-dependencies.jar"
echo "Starting using" $runner_file
java -Dorg.onap.dmaap.datarouter.subscriber.properties=/opt/app/subscriber/etc/subscriber.properties -jar $runner_file