summaryrefslogtreecommitdiffstats
path: root/projectroot
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2019-09-05 12:37:50 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-09-05 13:59:16 +0200
commita9e924d362273582d3018143bc1c2e9929c42e9e (patch)
treebc965eabd1544f7956330c3d4943e7d0e742c3f4 /projectroot
parent10c4a6d550e345cf3b211c486b541911437332a9 (diff)
downloadptxdist-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.conf14
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