aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem.moulin@fripost.org>2012-11-15 21:04:27 +0100
committerGuilhem Moulin <guilhem.moulin@fripost.org>2012-11-15 21:04:27 +0100
commit701415f7e288dbb5621979150f68810d29aebfe9 (patch)
tree8d9b3b4afd7e1d942277b98bef663500f3bb8fca
parent373d3223c4d86e3ee6c9b131d197b9fa97f1848e (diff)
logrotate
-rw-r--r--fripost-docs.org34
1 files changed, 34 insertions, 0 deletions
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