From patchwork Mon Jul 4 16:14:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 942612 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p64HAnqd023971 for ; Mon, 4 Jul 2011 17:10:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758183Ab1GDRKg (ORCPT ); Mon, 4 Jul 2011 13:10:36 -0400 Received: from lsd-gw.ic.unicamp.br ([143.106.7.165]:45929 "EHLO boneca.lsd.ic.unicamp.br" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757985Ab1GDRKf (ORCPT ); Mon, 4 Jul 2011 13:10:35 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 04 Jul 2011 17:10:49 +0000 (UTC) X-Greylist: delayed 1409 seconds by postgrey-1.27 at vger.kernel.org; Mon, 04 Jul 2011 13:10:34 EDT Received: from freie.oliva.athome.lsd.ic.unicamp.br (gw-to-emilia.oliva.athome.lsd.ic.unicamp.br [172.31.160.17] (may be forged)) by boneca.lsd.ic.unicamp.br (8.14.4/8.14.4) with ESMTP id p64Gl2HY010421 for ; Mon, 4 Jul 2011 13:47:03 -0300 Received: from livre.localdomain (livre-to-gw.oliva.athome.lsd.ic.unicamp.br [172.31.160.19]) by freie.oliva.athome.lsd.ic.unicamp.br (8.14.4/8.14.4) with ESMTP id p64Gl21H017063 for ; Mon, 4 Jul 2011 13:47:02 -0300 Received: from livre.localdomain (aoliva@localhost.localdomain [127.0.0.1]) by livre.localdomain (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p64Gl1x8032548; Mon, 4 Jul 2011 13:47:01 -0300 Received: (from aoliva@localhost) by livre.localdomain (8.14.3/8.14.3/Submit) id p64Gl1hV032547; Mon, 4 Jul 2011 13:47:01 -0300 X-Authentication-Warning: livre.localdomain: aoliva set sender to oliva@lsd.ic.unicamp.br using -f From: Alexandre Oliva To: ceph-devel@vger.kernel.org Subject: [PATCH] Move stat/*.log to the end of logrotate.conf Date: Mon, 4 Jul 2011 13:14:11 -0300 Organization: Free thinker, not speaking for University of Campinas User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Message-ID: MIME-Version: 1.0 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org Logrotate ignores entries after a rule that doesn't match any files. Signed-off-by: Alexandre Oliva --- src/logrotate.conf | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/logrotate.conf b/src/logrotate.conf index 14bc02c..a4fb73f 100644 --- a/src/logrotate.conf +++ b/src/logrotate.conf @@ -1,12 +1,3 @@ -# Separate stat/*.log into a different rule because sometimes -# it doesn't exist, and logrotate will ignore the entire rule -# if any part of the file list isn't found. -/var/log/ceph/stat/*.log { - rotate 7 - daily - compress -} - /var/log/ceph/*.log { rotate 7 daily @@ -16,3 +7,13 @@ invoke-rc.d ceph reload >/dev/null || service ceph reload >/dev/null endscript } + +# Separate stat/*.log into a different rule because sometimes +# it doesn't exist, and logrotate will ignore the entire rule +# and the remainder of the file if any part of the file list +# isn't found. +/var/log/ceph/stat/*.log { + rotate 7 + daily + compress +}