rsyslog: Add default logrotate config.
authorMatthijs Kooijman <matthijs@stdin.nl>
Mon, 4 May 2009 20:37:56 +0000 (22:37 +0200)
committerroot <root@drsnuggles.stderr.nl>
Tue, 5 May 2009 16:34:37 +0000 (18:34 +0200)
etc/logrotate.d/rsyslog [new file with mode: 0644]

diff --git a/etc/logrotate.d/rsyslog b/etc/logrotate.d/rsyslog
new file mode 100644 (file)
index 0000000..9ce5a44
--- /dev/null
@@ -0,0 +1,37 @@
+/var/log/syslog
+{
+       rotate 7
+       daily
+       missingok
+       notifempty
+       delaycompress
+       compress
+       postrotate
+               invoke-rc.d rsyslog reload > /dev/null
+       endscript
+}
+
+/var/log/mail.info
+/var/log/mail.warn
+/var/log/mail.err
+/var/log/mail.log
+/var/log/daemon.log
+/var/log/kern.log
+/var/log/auth.log
+/var/log/user.log
+/var/log/lpr.log
+/var/log/cron.log
+/var/log/debug
+/var/log/messages
+{
+       rotate 4
+       weekly
+       missingok
+       notifempty
+       compress
+       delaycompress
+       sharedscripts
+       postrotate
+               invoke-rc.d rsyslog reload > /dev/null
+       endscript
+}