From: Matthijs Kooijman Date: Mon, 4 May 2009 20:37:56 +0000 (+0200) Subject: rsyslog: Add default logrotate config. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=e872e80673a2a66f02719be9826cd4fc2375ace1;p=matthijs%2Fservers%2Fdrsnuggles.git rsyslog: Add default logrotate config. --- diff --git a/etc/logrotate.d/rsyslog b/etc/logrotate.d/rsyslog new file mode 100644 index 0000000..9ce5a44 --- /dev/null +++ b/etc/logrotate.d/rsyslog @@ -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 +}