summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
+}