7880e6f1a1
Package logrotate-config is created to config logrotate.conf and logrotate.cron for logrotate. Pass build and basic deploy test. And confirmed logrotate.conf and logrotate.cron is the same as before. Story: 2003768 Task: 27598 Change-Id: I4792366018f7c4d4960bf1182c8c2ffee5625676 Signed-off-by: slin14 <shuicheng.lin@intel.com>
39 lines
750 B
Plaintext
39 lines
750 B
Plaintext
# see "man logrotate" for details
|
|
# rotate log files weekly
|
|
weekly
|
|
|
|
# keep 4 weeks worth of backlogs
|
|
rotate 4
|
|
|
|
# create new (empty) log files after rotating old ones
|
|
create
|
|
|
|
# use date as a suffix of the rotated file
|
|
dateext
|
|
|
|
# Use su to rotate as root to ensure we don't fail due to dir permissions
|
|
su root root
|
|
|
|
# uncomment this if you want your log files compressed
|
|
#compress
|
|
|
|
# RPM packages drop log rotation information into this directory
|
|
include /etc/logrotate.d
|
|
|
|
# no packages own wtmp and btmp -- we'll rotate them here
|
|
/var/log/wtmp {
|
|
monthly
|
|
create 0664 root utmp
|
|
minsize 1M
|
|
rotate 1
|
|
}
|
|
|
|
/var/log/btmp {
|
|
missingok
|
|
monthly
|
|
create 0600 root utmp
|
|
rotate 1
|
|
}
|
|
|
|
# system-specific logs may be also be configured here.
|