Added Mail log file to '/etc/logrotate.conf'

Message ID 20190922070248.1666-1-matthias.fischer@ipfire.org
State Accepted
Commit 686ada315806e3d2731ca98bf9d050582b393471
Headers
Series Added Mail log file to '/etc/logrotate.conf' |

Commit Message

Matthias Fischer Sept. 22, 2019, 7:02 a.m. UTC
  Fixes Bug #12155: logrotate wasn't set up to rotate this file.

For details see:
https://bugzilla.ipfire.org/show_bug.cgi?id=12155

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
 config/etc/logrotate.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Michael Tremer Sept. 23, 2019, 7:25 p.m. UTC | #1
Acked-by: Michael Tremer <michael.tremer@ipfire.org>

> On 22 Sep 2019, at 08:02, Matthias Fischer <matthias.fischer@ipfire.org> wrote:
> 
> Fixes Bug #12155: logrotate wasn't set up to rotate this file.
> 
> For details see:
> https://bugzilla.ipfire.org/show_bug.cgi?id=12155
> 
> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
> ---
> config/etc/logrotate.conf | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/config/etc/logrotate.conf b/config/etc/logrotate.conf
> index f15ee92c3..0b6b48573 100644
> --- a/config/etc/logrotate.conf
> +++ b/config/etc/logrotate.conf
> @@ -68,7 +68,7 @@ include /etc/logrotate.d
>     endscript
> }
> 
> -/var/log/messages /var/log/bootlog /var/log/dhcpcd.log {
> +/var/log/messages /var/log/bootlog /var/log/dhcpcd.log /var/log/mail {
>     create 664 root syslogd
>     sharedscripts
>     ifempty
> -- 
> 2.18.0
>
  

Patch

diff --git a/config/etc/logrotate.conf b/config/etc/logrotate.conf
index f15ee92c3..0b6b48573 100644
--- a/config/etc/logrotate.conf
+++ b/config/etc/logrotate.conf
@@ -68,7 +68,7 @@  include /etc/logrotate.d
     endscript
 }
 
-/var/log/messages /var/log/bootlog /var/log/dhcpcd.log {
+/var/log/messages /var/log/bootlog /var/log/dhcpcd.log /var/log/mail {
     create 664 root syslogd
     sharedscripts
     ifempty