From 95d9b6f2216bf6f8a89c6fd64a98e1434bf4b761 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 22 May 2014 12:00:48 +0200 Subject: [PATCH] Fix invalid logrotate option. Fixes #6265 --- etc/logrotate.d/icinga2 | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/etc/logrotate.d/icinga2 b/etc/logrotate.d/icinga2 index 3622b8924..b843e90f9 100644 --- a/etc/logrotate.d/icinga2 +++ b/etc/logrotate.d/icinga2 @@ -1,7 +1,6 @@ -# ----- logrotate config ------------- -/var/log/icinga2/icinga2.log { +/var/log/icinga2/icinga2.log /var/log/icinga2/debug.log { daily - rotate 90 + rotate 7 compress delaycompress missingok @@ -15,22 +14,6 @@ endscript } -/var/log/icinga2/debug.log { - hourly - rotate 90 - compress - delaycompress - missingok - notifempty - create 644 icinga icinga - copytruncate - postrotate - if ! killall -q -USR1 icinga2; then - exit 1 - fi - endscript -} - /var/log/icinga2/error.log { daily rotate 90 @@ -40,5 +23,6 @@ notifempty create 644 icinga icinga copytruncate + # TODO: figure out how to get Icinga to re-open this log file }