summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-02-16 12:49:34 +0100
committerHolger Levsen <holger@layer-acht.org>2015-02-16 12:49:34 +0100
commitc20a5396e5e9c4846a23d95c0277af1e12ea46d4 (patch)
treef194e2f3343e43e82969ab2dea32406fadfd702e
parent08c3b53c9860bb6d3d4ecb77cb734a3f399d9374 (diff)
downloadjenkins.debian.net-c20a5396e5e9c4846a23d95c0277af1e12ea46d4.tar.xz
add logrotate file for email2irc logs
-rwxr-xr-xbin/email2irc.sh1
-rw-r--r--etc/logrotate.d/jenkins.debian.net9
2 files changed, 9 insertions, 1 deletions
diff --git a/bin/email2irc.sh b/bin/email2irc.sh
index 579dfb51..25f76fe3 100755
--- a/bin/email2irc.sh
+++ b/bin/email2irc.sh
@@ -9,7 +9,6 @@
# see http://kgb.alioth.debian.org/
#
LOGFILE=/var/log/jenkins/email.log
-# FIXME: add logrotate rule for /var/log/jenkins/email.log
debug123() {
if $DEBUG ; then
diff --git a/etc/logrotate.d/jenkins.debian.net b/etc/logrotate.d/jenkins.debian.net
new file mode 100644
index 00000000..995de184
--- /dev/null
+++ b/etc/logrotate.d/jenkins.debian.net
@@ -0,0 +1,9 @@
+/var/log/jenkins/email.log {
+ weekly
+ copytruncate
+ missingok
+ rotate 7
+ compress
+ delaycompress
+ notifempty
+}