Updated logrotate config for daemon.log
Increased the file size to 70M which is seven times the previous(10M). The LP description mentioned that with the current settings "file size 10M" the logs got rotated every 2 days but the desired behavior was to rotate every 2 weeks (14 days). Therefore, 2 days = 10M 14 days (2 * 7 times) = 70M (10 * 7) Partial-bug: 1882087 Change-Id: Ib30ecbc297356225b902598d341fb7ab44c3a8c2 Signed-off-by: Suvro Ghosh <suvrojeet.ghosh@windriver.com>
This commit is contained in:
parent
23ff168068
commit
1806d74c85
|
@ -3,7 +3,6 @@
|
|||
/var/log/syslog
|
||||
/var/log/auth.log
|
||||
/var/log/cron.log
|
||||
/var/log/daemon.log
|
||||
/var/log/daemon-ocf.log
|
||||
/var/log/kern.log
|
||||
/var/log/lpr.log
|
||||
|
@ -122,3 +121,18 @@
|
|||
/usr/bin/logmgmt_postrotate > /dev/null 2>&1 || true
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/daemon.log
|
||||
{
|
||||
nodateext
|
||||
size 70M
|
||||
start 1
|
||||
rotate 20
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
sharedscripts
|
||||
postrotate
|
||||
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
||||
endscript
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue