commit | cb839a2bd8acd438e398fb5d3748fd3ff3cc2bcc | [log] [tgz] |
---|---|---|
author | XP Chen <xiao-peng.chen@fii-na.com> | Wed Aug 25 15:16:38 2021 -0500 |
committer | Vivekanand Veeracholan <vveerach@google.com> | Tue Sep 28 18:39:45 2021 +0000 |
tree | 03ea145905bbf64c64f961ed5571454d9f3c1fff | |
parent | 78dbf47136a78d72fe10509b958dbb1b8753e9e9 [diff] |
meta-fii/meta-kudo: Add log rotation config for gpio logs. Add log rotation for gpio trigger logging Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Change-Id: I5e77b92115adc637fd4be48c5307f449519c281c
diff --git a/meta-fii/meta-kudo/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate b/meta-fii/meta-kudo/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate index a6ba28d..a4119a3 100644 --- a/meta-fii/meta-kudo/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate +++ b/meta-fii/meta-kudo/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate
@@ -20,3 +20,13 @@ systemctl reload rsyslog 2> /dev/null || true endscript } +# Keep up to two 2k files for gpio log (4k total) +/usr/share/kudo-vrlog/gpio.log +{ + rotate 1 + size 2k + missingok + postrotate + systemctl reload rsyslog 2> /dev/null || true + endscript +}