From 7d549dbbd5ff1866cb163998ca393980ad51fecb Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 11 May 2020 13:59:52 -0700 Subject: [PATCH] logrotate: add some comments --- setup/start/logrotate/platform | 1 + src/logrotate.ejs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/setup/start/logrotate/platform b/setup/start/logrotate/platform index 83babe233..f6bb90437 100644 --- a/setup/start/logrotate/platform +++ b/setup/start/logrotate/platform @@ -18,6 +18,7 @@ missingok # we never compress so we can simply tail the files nocompress + # this truncates the original log file and not the rotated one copytruncate } diff --git a/src/logrotate.ejs b/src/logrotate.ejs index e2d97ccc0..3e0c6e032 100644 --- a/src/logrotate.ejs +++ b/src/logrotate.ejs @@ -8,6 +8,7 @@ maxsize 1M missingok delaycompress + # this truncates the original log file and not the rotated one copytruncate } @@ -18,6 +19,7 @@ missingok # we never compress so we can simply tail the files nocompress + # this truncates the original log file and not the rotated one copytruncate }