[baseimage]: Logrotate for wtmp and btmp files. (#8743)
Added logrotate file for wtmp and btmp to override default conf and set size cap as 100K as done in PR: #865. For buster this is control by separate file wtmp and btmp. Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
This commit is contained in:
parent
8a00ad73fd
commit
13ec43bc68
7
files/image_config/logrotate/logrotate.d/btmp
Normal file
7
files/image_config/logrotate/logrotate.d/btmp
Normal file
@ -0,0 +1,7 @@
|
||||
# no packages own btmp -- we'll rotate it here
|
||||
/var/log/btmp {
|
||||
missingok
|
||||
size 100k
|
||||
create 0660 root utmp
|
||||
rotate 1
|
||||
}
|
7
files/image_config/logrotate/logrotate.d/wtmp
Normal file
7
files/image_config/logrotate/logrotate.d/wtmp
Normal file
@ -0,0 +1,7 @@
|
||||
# no packages own wtmp -- we'll rotate it here
|
||||
/var/log/wtmp {
|
||||
missingok
|
||||
size 100k
|
||||
create 0664 root utmp
|
||||
rotate 1
|
||||
}
|
Reference in New Issue
Block a user