From: Frank Brehm Date: Mon, 28 Oct 2019 21:44:27 +0000 (+0100) Subject: daily autocommit X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=e86c792a0bb9fd649d7f3df8b0009507a0adbf07;p=config%2Fns2%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..28fd118 100644 --- a/logrotate.d/btmp +++ b/logrotate.d/btmp @@ -3,5 +3,8 @@ 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 } +