From b343343f1efd0df9196b27e9e65b783e5e954112 Mon Sep 17 00:00:00 2001 From: PawelSzalapski Date: Tue, 10 Jul 2018 13:25:18 +0200 Subject: Clean up .sh scripts Removed .sh scripts that are not needed. Fill readme with a description of some of the things that might be not visible at first glance Refactor .sh scripts, remove not used or not needed parts Fix a bug where pidof does not work. Change logging of the scripts and they way that app is run so that the logs are in one place -> collector.logs Fixed a bug where tomcat startup problems are not logged Added log rotation with logrotate tool Change-Id: I156328ab23d18a20072177ae8c5420772c3e2c7c Signed-off-by: PawelSzalapski Issue-ID: DCAEGEN2-610 --- etc/logrotate.conf | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 etc/logrotate.conf (limited to 'etc/logrotate.conf') diff --git a/etc/logrotate.conf b/etc/logrotate.conf new file mode 100644 index 00000000..41bf4edc --- /dev/null +++ b/etc/logrotate.conf @@ -0,0 +1,7 @@ +/opt/app/VESCollector/logs/collector.log { + size 64M + rotate 10 + copytruncate + dateext + dateformat .%Y-%m-%dT%H:%M:%S +} \ No newline at end of file -- cgit 1.2.3-korg