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 }