From patchwork Sat Aug 31 20:13:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Fischer X-Patchwork-Id: 2377 Return-Path: Received: from mail01.ipfire.org (mail01.i.ipfire.org [172.28.1.200]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail01.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 5FF60818FD for ; Sat, 31 Aug 2019 20:13:28 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 46LSGG4J1Rz5DYJ0; Sat, 31 Aug 2019 21:13:26 +0100 (BST) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 46LSGG0mh0z2yhS; Sat, 31 Aug 2019 20:13:26 +0000 (UTC) Received: from mail01.ipfire.org (mail01.i.ipfire.org [172.28.1.200]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail01.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 46LSGD53dBz2yd2 for ; Sat, 31 Aug 2019 20:13:24 +0000 (UTC) Received: from Devel.localdomain (p4FF56DD1.dip0.t-ipconnect.de [79.245.109.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 46LSGD1YjQz5DXK7 for ; Sat, 31 Aug 2019 21:13:24 +0100 (BST) From: Matthias Fischer To: development@lists.ipfire.org Subject: [PATCH] BUG 12036: logwatch now starts at 00:05am to avoid conflicts with logrotate Date: Sat, 31 Aug 2019 22:13:19 +0200 Message-Id: <20190831201319.1490-1-matthias.fischer@ipfire.org> X-Mailer: git-send-email 2.18.0 Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=mfischer smtp.mailfrom=matthias.fischer@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Problem: Every once in a while 'logwatch' creates an empty log file with 0 Bytes. Probably 'logwatch' conflicts with the logrotate job which is launched at the same time. To avoid this in the future, the start of logwatch was postponed for four minutes. Signed-off-by: Matthias Fischer --- config/cron/crontab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cron/crontab b/config/cron/crontab index 4561f4a24..56801394e 100644 --- a/config/cron/crontab +++ b/config/cron/crontab @@ -31,7 +31,7 @@ HOME=/ */5 * * * * [ -f "/var/ipfire/red/active" ] && /usr/bin/ddns update-all # Logwatch -01 0 * * * /usr/local/bin/logwatch > /var/log/logwatch/`date -I -d yesterday`; \ +05 0 * * * /usr/local/bin/logwatch > /var/log/logwatch/`date -I -d yesterday`; \ LOGWATCH_KEEP=$(sed -ne 's/^LOGWATCH_KEEP=\([0-9]\+\)$/\1/p' /var/ipfire/logging/settings); \ find /var/log/logwatch/ -ctime +${LOGWATCH_KEEP=56} -exec rm -f '{}' ';'