From e4c0144c762b00fd4836714fc0d3bc0595797e96 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 18 Nov 2016 06:25:02 +0100 Subject: [PATCH] daily autocommit --- logrotate.conf | 4 ++++ logrotate.d/apt | 2 ++ logrotate.d/aptitude | 1 + logrotate.d/dpkg | 2 ++ 4 files changed, 9 insertions(+) diff --git a/logrotate.conf b/logrotate.conf index b504c76..8b61b36 100644 --- a/logrotate.conf +++ b/logrotate.conf @@ -19,17 +19,21 @@ include /etc/logrotate.d /var/log/wtmp { missingok monthly + nocompress create 0664 root utmp rotate 12 size 4M + dateformat -%Y-%m--%d } /var/log/btmp { missingok monthly + nocompress create 0660 root utmp rotate 12 size 4M + dateformat -%Y-%m--%d } # system-specific logs may be configured here diff --git a/logrotate.d/apt b/logrotate.d/apt index 0551563..9bf2cb5 100644 --- a/logrotate.d/apt +++ b/logrotate.d/apt @@ -7,6 +7,7 @@ notifempty size 1M dateext + dateformat -%Y-%m-%d } /var/log/apt/history.log { @@ -18,6 +19,7 @@ notifempty size 1M dateext + dateformat -%Y-%m-%d } # vim: ts=4 filetype=conf et diff --git a/logrotate.d/aptitude b/logrotate.d/aptitude index c2b3959..16f5db8 100644 --- a/logrotate.d/aptitude +++ b/logrotate.d/aptitude @@ -7,6 +7,7 @@ notifempty size 1M dateext + dateformat -%Y-%m-%d olddir /var/log/.old } diff --git a/logrotate.d/dpkg b/logrotate.d/dpkg index 0b0c144..0f91c0c 100644 --- a/logrotate.d/dpkg +++ b/logrotate.d/dpkg @@ -8,6 +8,7 @@ size 1M create 644 root root dateext + dateformat -%Y-%m-%d olddir /var/log/.old } /var/log/alternatives.log { @@ -20,5 +21,6 @@ size 1M create 644 root root dateext + dateformat -%Y-%m-%d olddir /var/log/.old } -- 2.39.5