diff --git a/systemvm/debian/etc/logrotate.conf b/systemvm/debian/etc/logrotate.conf index d213d4e9ce8..d33f2dae2e6 100644 --- a/systemvm/debian/etc/logrotate.conf +++ b/systemvm/debian/etc/logrotate.conf @@ -11,15 +11,3 @@ size 50M compress # RPM packages drop log rotation information into this directory include /etc/logrotate.d -# no packages own wtmp and btmp -- we'll rotate them here -/var/log/wtmp { - monthly - create 0664 root utmp - rotate 1 -} -/var/log/btmp { - missingok - monthly - create 0600 root utmp - rotate 1 -} diff --git a/systemvm/debian/etc/logrotate.d/btmp b/systemvm/debian/etc/logrotate.d/btmp new file mode 100644 index 00000000000..0aa1ae1ade1 --- /dev/null +++ b/systemvm/debian/etc/logrotate.d/btmp @@ -0,0 +1,7 @@ +# no packages own btmp -- we'll rotate it here +/var/log/btmp { + missingok + monthly + create 0660 root utmp + rotate 1 +} diff --git a/systemvm/debian/etc/logrotate.d/wtmp b/systemvm/debian/etc/logrotate.d/wtmp new file mode 100644 index 00000000000..cc8a151e00b --- /dev/null +++ b/systemvm/debian/etc/logrotate.d/wtmp @@ -0,0 +1,8 @@ +# no packages own wtmp -- we'll rotate it here +/var/log/wtmp { + missingok + monthly + create 0664 root utmp + minsize 1M + rotate 1 +}