From ee033842018375e0200a9b8f2e0dc813974440fd Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Mon, 21 May 2018 15:02:40 -0400 Subject: Replace LOGPATH with LOGSUFFIX docker-install.sh does not expand ${{xxx}} values in .conf files before using them to update target files. Consequently, replaced LOGPATH with LOGSUFFIX in .conf files and updated target files to use ${{POLICY_LOGS}}${{LOGSUFFIX}} instead. Replace "${POLICY_HOME}/logs" in auxiliary files (e.g., logrotate) with "${POLICY_LOGS}/policy". Update license dates. In .sh files, changed ${{POLICY_LOGS}} to ${POLICY_LOGS}, and ensured that env.sh is sourced. Use hard-coded paths in conf files instead of replacing LOGPATH with LOGSUFFIX. Update license dates. Repoint path for IntegrityMonitor.log, as we cannot easily move since it's in common. Replace hard-coded log path in docker-install.sh. Undo hard-coded log paths where possible, and modify scripts to pass $POLICY_LOGS to JVM. Change-Id: I027d8d2173ae97fef73b0daff1d6a87452857f93 Issue-ID: POLICY-759 Signed-off-by: Jim Hahn --- .../base/src/files/install/servers/paplp/bin/parserlog.properties | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'packages/base/src/files/install/servers/paplp/bin') diff --git a/packages/base/src/files/install/servers/paplp/bin/parserlog.properties b/packages/base/src/files/install/servers/paplp/bin/parserlog.properties index 9fe05cdbd..721fc77d6 100644 --- a/packages/base/src/files/install/servers/paplp/bin/parserlog.properties +++ b/packages/base/src/files/install/servers/paplp/bin/parserlog.properties @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # ONAP Policy Engine # ================================================================================ -# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -20,6 +20,8 @@ # PAP LogParser properties +POLICY_LOGS=${{POLICY_LOGS}} + # JVM specific parameters LOGPARSER_JMX_PORT=${{LOGPARSER_JMX_PORT}} LOGPARSER_X_MS_MB=${{LOGPARSER_X_MS_MB}} @@ -32,7 +34,7 @@ JDBC_DRIVER=${{JDBC_DRIVER}} JDBC_URL='${{JDBC_LOG_URL}}' JDBC_USER=${{JDBC_USER}} JDBC_PASSWORD=${{JDBC_PASSWORD}} -PARSERLOGPATH=IntegrityMonitor.log +PARSERLOGPATH=${{PARSERLOGPATH}} # run this cleanup systemlogdb table once a day CHECK_INTERVAL=86400000 # timeFrame for removing old records from systemlogdb table -- cgit 1.2.3-korg