Skip to content

Commit 8d2bf37

Browse files
abdosijudyjoseph
authored andcommitted
[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 <[email protected]>
1 parent 79ed384 commit 8d2bf37

File tree

2 files changed

+14
-0
lines changed
  • files/image_config/logrotate/logrotate.d

2 files changed

+14
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# no packages own btmp -- we'll rotate it here
2+
/var/log/btmp {
3+
missingok
4+
size 100k
5+
create 0660 root utmp
6+
rotate 1
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# no packages own wtmp -- we'll rotate it here
2+
/var/log/wtmp {
3+
missingok
4+
size 100k
5+
create 0664 root utmp
6+
rotate 1
7+
}

0 commit comments

Comments
 (0)