From: Frank Brehm Date: Mon, 28 Oct 2019 21:40:00 +0000 (+0100) Subject: daily autocommit X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=58cf52bf23ce0fb714901608f356d1b7fb180ae7;p=config%2Fns1%2Fetc.git daily autocommit --- diff --git a/logrotate.conf b/logrotate.conf index 4eb8285..9387043 100644 --- a/logrotate.conf +++ b/logrotate.conf @@ -15,25 +15,4 @@ delaycompress # packages drop log rotation information into this directory include /etc/logrotate.d -# no packages own wtmp, or btmp -- we'll rotate them here -/var/log/wtmp { - missingok - monthly - create 0664 root utmp - rotate 12 - dateext - dateformat -%Y-%m-%d - size 4M -} - -/var/log/btmp { - missingok - monthly - create 0660 root utmp - rotate 12 - dateext - dateformat -%Y-%m-%d - size 4M -} - # system-specific logs may be configured here diff --git a/logrotate.d/btmp b/logrotate.d/btmp index 0aa1ae1..e2df517 100644 --- a/logrotate.d/btmp +++ b/logrotate.d/btmp @@ -3,5 +3,9 @@ missingok monthly create 0660 root utmp - rotate 1 + rotate 12 + dateext + dateformat -%Y-%m-%d + size 4M } + diff --git a/logrotate.d/wtmp b/logrotate.d/wtmp index cc8a151..fc1e23b 100644 --- a/logrotate.d/wtmp +++ b/logrotate.d/wtmp @@ -3,6 +3,9 @@ missingok monthly create 0664 root utmp - minsize 1M - rotate 1 + rotate 12 + dateext + dateformat -%Y-%m-%d + size 4M } +