Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
Michael Lando | a1ceb60 | 2018-02-20 16:14:11 +0200 | [diff] [blame] | 3 | cd /root/chef-solo |
| 4 | chef-solo -c solo.rb -E ${ENVNAME} |
| 5 | rc=$? |
sebdet | 30670ac | 2020-08-04 14:16:00 +0200 | [diff] [blame] | 6 | if [ $rc -ne 0 ]; then |
Michael Lando | a1ceb60 | 2018-02-20 16:14:11 +0200 | [diff] [blame] | 7 | echo "Chef exaction failed." |
| 8 | exit $rc; |
| 9 | fi |
| 10 | |
| 11 | JAVA_OPTIONS=" ${JAVA_OPTIONS} \ |
Lior Nachmias | bc169d4 | 2018-02-26 18:21:23 +0200 | [diff] [blame] | 12 | -Xdebug -agentlib:jdwp=transport=dt_socket,address=5000,server=y,suspend=n -Xmx128m -Xms128m -Xss1m \ |
Michael Lando | a1ceb60 | 2018-02-20 16:14:11 +0200 | [diff] [blame] | 13 | -Dconfig.home=${JETTY_BASE}/config/sdc-simulator \ |
| 14 | -Dlog.home=${JETTY_BASE}/logs \ |
| 15 | -Dlogback.configurationFile=${JETTY_BASE}/config/sdc-simulator/logback.xml \ |
k.kedron | 7890e82 | 2019-08-21 13:31:02 +0200 | [diff] [blame] | 16 | -Djavax.net.ssl.trustStore=${JETTY_BASE}/etc/org.onap.sdc.trust.jks \ |
k.kedron | a22105e | 2020-03-25 15:29:42 +0100 | [diff] [blame] | 17 | -Djavax.net.ssl.trustStorePassword=z+KEj;t+,KN^iimSiS89e#p0 \ |
Tal Gitelman | ae3a86d | 2018-10-30 19:45:19 +0200 | [diff] [blame] | 18 | -Djetty.console-capture.dir=${JETTY_BASE}/logs" |
Michael Lando | a1ceb60 | 2018-02-20 16:14:11 +0200 | [diff] [blame] | 19 | |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 20 | |
| 21 | cd /var/lib/jetty |
sebdet | 30670ac | 2020-08-04 14:16:00 +0200 | [diff] [blame] | 22 | |
| 23 | java $JAVA_OPTIONS -jar "$JETTY_HOME/start.jar" |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 24 | |