From 4071a05a70909c9f6ec5006be2582edc961fe3a9 Mon Sep 17 00:00:00 2001 From: "Chou, Joseph (JC2555)" Date: Mon, 2 Apr 2018 14:11:34 -0400 Subject: ONAP log files consolidation Check in changes for pap,pdp,console,brmsgw,paplp and pdplp Change-Id: I5b51368f8fed2d0ede848f1aa7f2f70c866dfe8b Issue-ID: POLICY-562 Signed-off-by: Chou, Joseph (JC2555) --- packages/base/src/files/install/servers/brmsgw/init.d/brmsgw | 1 + .../base/src/files/install/servers/common/logparser/init.d/logparserd | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/base/src/files/install/servers/brmsgw/init.d/brmsgw b/packages/base/src/files/install/servers/brmsgw/init.d/brmsgw index 998a36976..0356b22ab 100644 --- a/packages/base/src/files/install/servers/brmsgw/init.d/brmsgw +++ b/packages/base/src/files/install/servers/brmsgw/init.d/brmsgw @@ -48,6 +48,7 @@ function um_start() { JAVA_OPTS=("${JVM_JAVA_OPTS[@]}" "${JMX_JAVA_OPTS[@]}" "${JVM_SECURITY[@]}") cd $POLICY_HOME/servers/brmsgw + mkdir -p $POLICY_LOGS/policy/brmsgw 2>/dev/null nohup $JAVA_HOME/bin/java -jar "${JAVA_OPTS[@]}" $POLICY_HOME/servers/brmsgw/BRMSGateway.jar>> $POLICY_LOGS/policy/brmsgw/brmsgw.log 2>&1 & RETVAL=$? } diff --git a/packages/base/src/files/install/servers/common/logparser/init.d/logparserd b/packages/base/src/files/install/servers/common/logparser/init.d/logparserd index e4ad903bc..a8c9d5160 100755 --- a/packages/base/src/files/install/servers/common/logparser/init.d/logparserd +++ b/packages/base/src/files/install/servers/common/logparser/init.d/logparserd @@ -25,7 +25,8 @@ function um_start() { # Redirects default and error output to a log file cd ${POLICY_HOME}/servers/${COMPONENT}/bin - nohup $JAVA_HOME/bin/java -jar ${JAVA_OPTS} ${SERVICE} ${SERVER} ${LOGTYPE} >> ${POLICY_LOG}/policy/${COMPONENT}/stdout 2>&1 & + mkdir -p ${POLICY_LOGS}/policy/${COMPONENT} 2>/dev/null + nohup $JAVA_HOME/bin/java -jar ${JAVA_OPTS} ${SERVICE} ${SERVER} ${LOGTYPE} >> ${POLICY_LOGS}/policy/${COMPONENT}/stdout 2>&1 & RETVAL=$? RETVAL=$? } -- cgit 1.2.3-korg