From bda835d0051950c63c0f38bbf11fb6fe47b4af36 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 31 Oct 2013 01:10:49 +0100 Subject: Configure the (basic) logging policy. --- roles/common/files/etc/logrotate.d/fripost-mail | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 roles/common/files/etc/logrotate.d/fripost-mail (limited to 'roles/common/files/etc/logrotate.d/fripost-mail') diff --git a/roles/common/files/etc/logrotate.d/fripost-mail b/roles/common/files/etc/logrotate.d/fripost-mail new file mode 100644 index 0000000..9ed2617 --- /dev/null +++ b/roles/common/files/etc/logrotate.d/fripost-mail @@ -0,0 +1,17 @@ +# Don't forget to remove these log files from other files under +# /etc/logrotate.d/ ! + +/var/log/mail.log +/var/log/mail.info +{ + rotate 3 + daily + missingok + notifempty + compress + delaycompress + sharedscripts + postrotate + invoke-rc.d rsyslog rotate > /dev/null + endscript +} -- cgit v1.2.3