Elukey has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/343276 )
Change subject: Add delay compress to upstart's logrotate
......................................................................
Add delay compress to upstart's logrotate
We currently see a lot of spam to root@ due to .log.1
files already present while rotating. This makes logrotate
upset because it expects to find .log.1.gz with the
'compress', so it stops rotating and report back
the issue. This might be due to copytruncate, but
I would like to try to add 'delaycompress' to see
if next logrotate runs will auto-correct the issue
by themselves (finding .log.1 and zipping it).
Bug: T132324
Change-Id: I4de92a23bfe6ce6cf5c367951ad6de6c76060a60
---
M modules/base/files/logrotate/upstart
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Elukey: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/base/files/logrotate/upstart
b/modules/base/files/logrotate/upstart
index b459bd1..7dec9b4 100644
--- a/modules/base/files/logrotate/upstart
+++ b/modules/base/files/logrotate/upstart
@@ -18,6 +18,7 @@
missingok
rotate 7
compress
+ delaycompress
notifempty
nocreate
copytruncate
--
To view, visit https://gerrit.wikimedia.org/r/343276
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4de92a23bfe6ce6cf5c367951ad6de6c76060a60
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Elukey <[email protected]>
Gerrit-Reviewer: Andrew Bogott <[email protected]>
Gerrit-Reviewer: Elukey <[email protected]>
Gerrit-Reviewer: Filippo Giunchedi <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits