Fix log location 02/104602/1
authorDan Timoney <dtimoney@att.com>
Fri, 27 Mar 2020 18:04:16 +0000 (14:04 -0400)
committerDan Timoney <dtimoney@att.com>
Fri, 27 Mar 2020 18:04:16 +0000 (14:04 -0400)
Update sliboot docker to log to standard ONAP directory
(/var/log/onap/{project})

Change-Id: I932d48ee658ebd4236ea67eab1f6769e6d50013d
Issue-ID: CCSDK-2186
Signed-off-by: Dan Timoney <dtimoney@att.com>
sliboot/src/main/resources/startSliboot.sh

index 44cef11..db1dfaa 100644 (file)
@@ -24,6 +24,7 @@
 export CCSDK_HOME=${CCSDK_HOME:-/opt/onap/ccsdk}
 export SLIBOOT_JAR=${SLIBOOT_JAR:-${ccsdk.sliboot.jar}}
 export SVCLOGIC_DIR=${SVCLOGIC_DIR:-opt/onap/ccsdk/svclogic/graphs}
+export LOG_PATH=${LOG_PATH:-/var/log/onap/ccsdk}
 
 #
 # Wait for database
@@ -51,5 +52,5 @@ END
 mysql -h ${MYSQL_DB_HOST} -u ${MYSQL_DB_USER} -p${MYSQL_DB_PASSWD} ${MYSQL_DB_DATABASE} < ${CCSDK_HOME}/config/schema.sql
 
 cd $CCSDK_HOME
-java -DserviceLogicDirectory=${SVCLOGIC_DIR} -jar ${CCSDK_HOME}/lib/${SLIBOOT_JAR}
+java -DserviceLogicDirectory=${SVCLOGIC_DIR} -DLOG_PATH=${LOG_PATH} -jar ${CCSDK_HOME}/lib/${SLIBOOT_JAR}
 

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use