Fix logrotate conf for *tmp logs
This commit is contained in:
parent
98e3feb911
commit
2983239fcc
Binary file not shown.
|
@ -8,22 +8,3 @@ notifempty
|
||||||
include /etc/logrotate.d
|
include /etc/logrotate.d
|
||||||
rotate 4
|
rotate 4
|
||||||
|
|
||||||
# No packages own wtmp or btmp, they will be managed directly
|
|
||||||
/var/log/wtmp {
|
|
||||||
missingok
|
|
||||||
monthly
|
|
||||||
create 0664 root utmp
|
|
||||||
rotate 3
|
|
||||||
olddir /var/log/old_logs.d
|
|
||||||
minsize 1M
|
|
||||||
}
|
|
||||||
|
|
||||||
# No packages own wtmp or btmp, they will be managed directly
|
|
||||||
/var/log/btmp {
|
|
||||||
missingok
|
|
||||||
monthly
|
|
||||||
create 0660 root utmp
|
|
||||||
rotate 3
|
|
||||||
olddir /var/log/old_logs.d
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
# no packages own btmp -- we'll rotate it here
|
||||||
|
/var/log/btmp {
|
||||||
|
missingok
|
||||||
|
monthly
|
||||||
|
create 0660 root utmp
|
||||||
|
rotate 3
|
||||||
|
olddir /var/log/old_logs.d
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
# no packages own wtmp -- we'll rotate it here
|
||||||
|
/var/log/wtmp {
|
||||||
|
missingok
|
||||||
|
monthly
|
||||||
|
create 0664 root utmp
|
||||||
|
minsize 1M
|
||||||
|
rotate 3
|
||||||
|
olddir /var/log/old_logs.d
|
||||||
|
}
|
Loading…
Reference in New Issue