Skip to content

Commit

Permalink
[baseimage]: Logrotate for wtmp and btmp files. (#8743)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
abdosi authored Sep 16, 2021
1 parent 8a00ad7 commit 13ec43b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions files/image_config/logrotate/logrotate.d/btmp
Original file line number Diff line number Diff line change
@@ -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 changes: 7 additions & 0 deletions files/image_config/logrotate/logrotate.d/wtmp
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 13ec43b

Please sign in to comment.