diff options
author | Juergen Borleis <jbe@pengutronix.de> | 2019-09-05 12:37:50 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-09-05 13:59:16 +0200 |
commit | a9e924d362273582d3018143bc1c2e9929c42e9e (patch) | |
tree | bc965eabd1544f7956330c3d4943e7d0e742c3f4 /projectroot | |
parent | 10c4a6d550e345cf3b211c486b541911437332a9 (diff) | |
download | ptxdist-a9e924d362273582d3018143bc1c2e9929c42e9e.tar.gz ptxdist-a9e924d362273582d3018143bc1c2e9929c42e9e.tar.xz |
logrotate: change from single config file to drop-in directory
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 <jbe@pengutronix.de>
Reviewed-by: Alexander Dahl <ada@thorsis.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'projectroot')
-rw-r--r-- | projectroot/etc/logrotate.conf | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/projectroot/etc/logrotate.conf b/projectroot/etc/logrotate.conf 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 |