summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-05-03 17:13:16 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-05-03 17:13:16 -0300
commit9fe87fbbbf85bf097abb9d5ac67799768ac95c7a (patch)
tree76eba48688d12297dc293422c046b3cdec20f92f /files
parent8d9d488d341188c82d152f3404f027c7253f0034 (diff)
downloadpuppet-syslog-ng-9fe87fbbbf85bf097abb9d5ac67799768ac95c7a.tar.gz
puppet-syslog-ng-9fe87fbbbf85bf097abb9d5ac67799768ac95c7a.tar.bz2
Avoiding annoying messages
Diffstat (limited to 'files')
-rw-r--r--files/logrotate138
1 files changed, 138 insertions, 0 deletions
diff --git a/files/logrotate b/files/logrotate
new file mode 100644
index 0000000..091c488
--- /dev/null
+++ b/files/logrotate
@@ -0,0 +1,138 @@
+/var/log/auth.log {
+ rotate 4
+ missingok
+ notifempty
+ weekly
+ compress
+ delaycompress
+}
+
+/var/log/cron.log {
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ compress
+ delaycompress
+}
+
+/var/log/daemon.log {
+ rotate 7
+ weekly
+ missingok
+ notifempty
+ compress
+ delaycompress
+}
+
+/var/log/debug {
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ compress
+ delaycompress
+}
+
+/var/log/kern.log {
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ compress
+ delaycompress
+}
+
+/var/log/lpr.log {
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ compress
+ delaycompress
+}
+
+/var/log/mail.err {
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ compress
+ delaycompress
+}
+
+/var/log/mail.info {
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ compress
+ delaycompress
+}
+
+/var/log/mail.log {
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ compress
+ delaycompress
+}
+
+/var/log/mail.warn {
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ compress
+ delaycompress
+}
+
+/var/log/error {
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ compress
+ delaycompress
+}
+
+/var/log/messages {
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ compress
+ delaycompress
+}
+
+
+/var/log/user.log {
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ compress
+ delaycompress
+}
+
+/var/log/uucp.log {
+ rotate 4
+ missingok
+ notifempty
+ weekly
+ compress
+ delaycompress
+}
+
+/var/log/syslog {
+ rotate 7
+ daily
+ compress
+ delaycompress
+ postrotate
+ # TODO: remove stderr redirect after this issue is solved:
+ # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625488
+ /usr/sbin/invoke-rc.d syslog-ng reload 2>/dev/null
+ endscript
+}