aboutsummaryrefslogtreecommitdiffstats
path: root/packages/base/src/files/install/servers
diff options
context:
space:
mode:
authorChou, Joseph (JC2555) <jc2555@att.com>2018-04-02 14:11:34 -0400
committerChou, Joseph (JC2555) <jc2555@att.com>2018-04-04 13:51:13 -0400
commit4071a05a70909c9f6ec5006be2582edc961fe3a9 (patch)
tree8b1da6950c0fdb4abd0d7d4a003757248371f7bb /packages/base/src/files/install/servers
parent7e28140dbf60ca27976668a372747af48600a325 (diff)
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) <jc2555@att.com>
Diffstat (limited to 'packages/base/src/files/install/servers')
-rw-r--r--packages/base/src/files/install/servers/brmsgw/init.d/brmsgw1
-rwxr-xr-xpackages/base/src/files/install/servers/common/logparser/init.d/logparserd3
2 files changed, 3 insertions, 1 deletions
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=$?
}