ArielGlenn has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/389984 )
Change subject: use a simple find to toss old cirrussearch dump log files
......................................................................
use a simple find to toss old cirrussearch dump log files
With the datestring embedded in the log filename as it is, there's
no nice way to get logrotate to rotate the older files in the way
one would expect. And compression buys us nothing anyways, these
files are all tiny. Just clean up the old-fashioned way.
Bug: T162688
Change-Id: I6a67efb90750789af52c0c485927edb6db502971
---
M modules/snapshot/files/cron/dumpcirrussearch.sh
D modules/snapshot/files/cron/logrotate.cirrusdump
2 files changed, 3 insertions(+), 11 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/84/389984/1
diff --git a/modules/snapshot/files/cron/dumpcirrussearch.sh
b/modules/snapshot/files/cron/dumpcirrussearch.sh
index 34d7a0d..7fbf6e3 100644
--- a/modules/snapshot/files/cron/dumpcirrussearch.sh
+++ b/modules/snapshot/files/cron/dumpcirrussearch.sh
@@ -145,3 +145,6 @@
rm -f "current"
ln -s "$today" "current"
fi
+
+# clean up old log files
+find /var/log/cirrusdump/ -name 'cirrusdump-*-cirrussearch-*.log*' -mtime +30
-delete
diff --git a/modules/snapshot/files/cron/logrotate.cirrusdump
b/modules/snapshot/files/cron/logrotate.cirrusdump
deleted file mode 100644
index 2198f30..0000000
--- a/modules/snapshot/files/cron/logrotate.cirrusdump
+++ /dev/null
@@ -1,11 +0,0 @@
-# This file is managed by puppet
-# puppet:///modules/snapshot/cron/logrotate.cirrusdump
-#
-/var/log/cirrusdump/*.log {
- daily
- compress
- delaycompress
- missingok
- maxage 22
- nocreate
-}
--
To view, visit https://gerrit.wikimedia.org/r/389984
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6a67efb90750789af52c0c485927edb6db502971
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: ArielGlenn <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits