From 701415f7e288dbb5621979150f68810d29aebfe9 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 15 Nov 2012 21:04:27 +0100 Subject: logrotate --- fripost-docs.org | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/fripost-docs.org b/fripost-docs.org index f6296e3..b614129 100644 --- a/fripost-docs.org +++ b/fripost-docs.org @@ -2518,6 +2518,40 @@ For the webmail, we only log messages of priority warn or higher. invoke-rc.d rsyslog reload > /dev/null endscript } + /var/log/mail.warn + /var/log/mail.err + [...] + + :: /etc/logrotate.d/roundcube-core + + /var/log/roundcube/errors + /var/log/roundcube/sendmail + /var/log/roundcube/userlogins + { + create 0640 www-data adm + compress + missingok + notifempty + rotate 3 + daily + } + + :: /etc/logrotate.d/apache2 + + /var/log/apache2/*.log { + daily + missingok + rotate 3 + compress + delaycompress + notifempty + create 640 root adm + sharedscripts + postrotate + /etc/init.d/apache2 reload > /dev/null + endscript + } + ** Necessary stuff to fix for security *** Bacula for backups -- cgit v1.2.3