blob: 3f6e2a02b5f789a98a22d016815c54c4f6f8a93c [file] [log] [blame]
Tal Gitelmanfa222902017-08-16 13:44:31 +03001#!/bin/sh
2
Michael Landoa1ceb602018-02-20 16:14:11 +02003cd /root/chef-solo
4chef-solo -c solo.rb -E ${ENVNAME}
5rc=$?
sebdet30670ac2020-08-04 14:16:00 +02006if [ $rc -ne 0 ]; then
Michael Landoa1ceb602018-02-20 16:14:11 +02007 echo "Chef exaction failed."
8 exit $rc;
9fi
10
11JAVA_OPTIONS=" ${JAVA_OPTIONS} \
Lior Nachmiasbc169d42018-02-26 18:21:23 +020012 -Xdebug -agentlib:jdwp=transport=dt_socket,address=5000,server=y,suspend=n -Xmx128m -Xms128m -Xss1m \
Michael Landoa1ceb602018-02-20 16:14:11 +020013 -Dconfig.home=${JETTY_BASE}/config/sdc-simulator \
14 -Dlog.home=${JETTY_BASE}/logs \
15 -Dlogback.configurationFile=${JETTY_BASE}/config/sdc-simulator/logback.xml \
k.kedron7890e822019-08-21 13:31:02 +020016 -Djavax.net.ssl.trustStore=${JETTY_BASE}/etc/org.onap.sdc.trust.jks \
k.kedrona22105e2020-03-25 15:29:42 +010017 -Djavax.net.ssl.trustStorePassword=z+KEj;t+,KN^iimSiS89e#p0 \
Tal Gitelmanae3a86d2018-10-30 19:45:19 +020018 -Djetty.console-capture.dir=${JETTY_BASE}/logs"
Michael Landoa1ceb602018-02-20 16:14:11 +020019
Tal Gitelmanfa222902017-08-16 13:44:31 +030020
21cd /var/lib/jetty
sebdet30670ac2020-08-04 14:16:00 +020022
23java $JAVA_OPTIONS -jar "$JETTY_HOME/start.jar"
Tal Gitelmanfa222902017-08-16 13:44:31 +030024