From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Alexander Dahl Date: Thu, 05 Sep 2019 13:00:28 +0200 Message-ID: <5832235.N2GAWMqsmC@ada> In-Reply-To: <20190905103750.12681-1-jbe@pengutronix.de> References: <20190905103750.12681-1-jbe@pengutronix.de> Subject: Re: [ptxdist] [PATCH] logrotate: change from single config file to drop-in directory List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Hello J=FCrgen, Am Donnerstag, 5. September 2019, 12:37:50 CEST schrieb Juergen Borleis: > Instead of using only one single config file, a drop-in directory is more > useful to support various users of 'logrotate'. > = > This change still expects the BSP to provide the '/etc/logrotate.d' > directory and the required config files in there. > = > Signed-off-by: Juergen Borleis > --- > projectroot/etc/logrotate.conf | 14 +------------- > rules/logrotate.in | 7 ++++++- > 2 files changed, 7 insertions(+), 14 deletions(-) > = > diff --git a/projectroot/etc/logrotate.conf b/projectroot/etc/logrotate.c= onf > index d872dcc5d..e3d85c4ff 100644 > --- a/projectroot/etc/logrotate.conf > +++ b/projectroot/etc/logrotate.conf > @@ -1,13 +1 @@ > -/var/log/syslog { > - missingok > - > - # rotate after X bytes - ignore time > - size 512k > - > - # keep backlog of X > - rotate 20 > - > - postrotate > - systemctl restart rsyslog > - endscript > -} > +include /etc/logrotate.d > diff --git a/rules/logrotate.in b/rules/logrotate.in > index 097804017..f3b465b87 100644 > --- a/rules/logrotate.in > +++ b/rules/logrotate.in > @@ -15,8 +15,13 @@ menuconfig LOGROTATE > log file gets to a certain size. Normally, logrotate runs as > a daily cron job. > = > + In order to make 'logrotate' work at run-time, a directory > + '/etc/logrotate.d' is required which must contain your own 'logrotate' > + config files (refer the manpage). There are no defaults in this > + package. > + > Note: on a read-only root filesystem this package still requires a > - writable '/var/lib' for its run-time information. > + writable '/var/lib' for its run-time state information. > = > if LOGROTATE Reviewed-by: Alexander Dahl Greets Alex _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de