Use maxsize logrotate rule instead of size

The current ruleset means rotate the file daily unless the file grows
larger than 1Mb earlier, then rotate once the file reaches that size.

https://serverfault.com/questions/474941/how-to-rotate-log-based-on-an-interval-unless-log-exceeds-a-certain-size
This commit is contained in:
Johannes Zellner
2017-08-16 19:10:49 +02:00
parent 9e558924bb
commit 67a2ba957e

View File

@@ -4,7 +4,7 @@
rotate 7
daily
compress
size=1M
maxsize=1M
missingok
delaycompress
copytruncate