[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:
abdosi 2021-09-15 23:28:27 -07:00 committed by GitHub
parent 8a00ad73fd
commit 13ec43bc68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View 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
}

View 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
}