summaryrefslogtreecommitdiffstats
path: root/src/main/scripts
diff options
context:
space:
mode:
authorZlatko Murgoski <zlatko.murgoski@nokia.com>2019-06-13 16:54:28 +0200
committerZlatko Murgoski <zlatko.murgoski@nokia.com>2019-06-20 23:26:21 +0200
commit57c7c88b199fd10945aa2e7c7e08231dc0f15d4a (patch)
tree78b28c30f9b3c003c11d781331cf7fe32db957cf /src/main/scripts
parentc3a2fd25011e1777ef48d79632170c0ed913f928 (diff)
No available docker logs
https://jira.onap.org/browse/DCAEGEN2-1618 Issue-ID: DCAEGEN2-1618 Signed-off-by: Zlatko Murgoski <zlatko.murgoski@nokia.com> Change-Id: If44392a5d5654952cbf1f8f048d9c6deb6ced832
Diffstat (limited to 'src/main/scripts')
-rw-r--r--src/main/scripts/appController.sh2
-rw-r--r--src/main/scripts/docker-entry.sh13
2 files changed, 1 insertions, 14 deletions
diff --git a/src/main/scripts/appController.sh b/src/main/scripts/appController.sh
index f5094dcc..bdb2c812 100644
--- a/src/main/scripts/appController.sh
+++ b/src/main/scripts/appController.sh
@@ -35,7 +35,7 @@ start() {
-XX:ErrorFile=logs/java_error%p.log \
-XX:+HeapDumpOnOutOfMemoryError \
-Dhttps.protocols=TLSv1.1,TLSv1.2 \
- org.onap.dcae.VesApplication $* &>> logs/collector.log &
+ org.onap.dcae.VesApplication $* &
}
stop() {
diff --git a/src/main/scripts/docker-entry.sh b/src/main/scripts/docker-entry.sh
index 6b300669..3131a1a6 100644
--- a/src/main/scripts/docker-entry.sh
+++ b/src/main/scripts/docker-entry.sh
@@ -21,19 +21,6 @@
###
source bin/logger.sh
-# Redirect all stdout & stderr to a main log file, but also let it print into the console
-# At the time this script is invoked, these directories and files do not exist yet, so we need to create them
-mkdir -p logs
-touch logs/collector.log
-exec &> >(tee -a logs/collector.log)
-
-log "Enabling log rotation for collector.log"
-loggedCommand "cp etc/logrotate.conf /etc/logrotate.d"
-echo "* * * * * root logrotate /etc/logrotate.conf" >> /etc/crontab
-log "Restarting cron"
-loggedCommand "service cron reload"
-loggedCommand "service cron start"
-
log "Main application entry-point invoked"
if [ ! -z ${COLLECTOR_IP} ]; then