corrections for packaging and CSIT
[dmaap/buscontroller.git] / misc / dmaapbc
index 83fc8c2..3d19f88 100644 (file)
@@ -34,6 +34,12 @@ config() {
        fi
        cd $APP_ROOT
        source $CONTAINER_CONFIG
+       if [ ! -f $APP_ROOT/misc/cert-client-init.sh ]
+       then
+               echo "Did not find $APP_ROOT/misc/cert-client-init.sh to append to truststore"
+               exit 1
+       fi
+       $APP_ROOT/misc/cert-client-init.sh
        . misc/dmaapbc.properties.tmpl > etc/dmaapbc.properties
     . misc/PolicyEngineApi.properties.tmpl > config/PolicyEngineApi.properties
        set +x
@@ -80,7 +86,13 @@ start() {
        if [ "$PIDS" = "" ]
        then
                echo $COMPONENT startup failed
-               tail -100 $APP_ROOT/logs/dmaap*.log
+               ls -l $APP_ROOT/logs/EELF
+               echo "------------ error.log ---------------"
+               cat $APP_ROOT/logs/EELF/error.log
+               echo "------------ server.log ---------------"
+               cat $APP_ROOT/logs/EELF/server.log
+               echo "------------ tail -100 application.log ---------------"
+               tail -100 $APP_ROOT/logs/EELF/application.log
        else
                echo $COMPONENT started
        fi