summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2008-04-08 01:11:07 +0200
committerMichael Biebl <biebl@debian.org>2008-04-08 01:11:07 +0200
commit9d1fc5f2ada9fb2cd1d03c736cce1cf6f03a9010 (patch)
tree5ad5002658d2b2a14ad25c4fc741bbfd4f56296b
parentebf16876a2e551eca3319eced671116057f936d1 (diff)
downloadrsyslog-9d1fc5f2ada9fb2cd1d03c736cce1cf6f03a9010.tar.gz
Improve lograte file to make it more robust and behave like old sysklogddebian/3.14.1-1
* debian/rsyslog.logrotate - Group together related log files. - Rotate daemon.log and kern.log weekly, to match sysklogd behaviour. - Add options "missingok", "delaycompress" and "sharedscripts" as suggested by Paul Slootman. Closes: #473546
-rw-r--r--debian/changelog5
-rw-r--r--debian/rsyslog.logrotate30
2 files changed, 25 insertions, 10 deletions
diff --git a/debian/changelog b/debian/changelog
index fcb8df9..51567fc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,6 +25,11 @@ rsyslog (3.14.1-1) unstable; urgency=low
* debian/rsyslog.postinst
- Minimize downtime by restarting rsyslog in postinst instead of stop in
prerm and start in postinst. Closes: #471051
+ * debian/rsyslog.logrotate
+ - Group together related log files.
+ - Rotate daemon.log and kern.log weekly, to match sysklogd behaviour.
+ - Add options "missingok", "delaycompress" and "sharedscripts" as
+ suggested by Paul Slootman. Closes: #473546
-- Michael Biebl <biebl@debian.org> Sun, 06 Apr 2008 16:54:08 +0200
diff --git a/debian/rsyslog.logrotate b/debian/rsyslog.logrotate
index 36d4ec9..9ce5a44 100644
--- a/debian/rsyslog.logrotate
+++ b/debian/rsyslog.logrotate
@@ -1,26 +1,36 @@
-/var/log/daemon.log /var/log/syslog /var/log/kern.log {
+/var/log/syslog
+{
rotate 7
+ daily
missingok
notifempty
- daily
+ delaycompress
compress
postrotate
invoke-rc.d rsyslog reload > /dev/null
endscript
}
-/var/log/mail.err /var/log/mail.info /var/log/mail.log /var/log/mail.warn {
+/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
- notifempty
- compress
weekly
-}
-
-/var/log/auth.log /var/log/user.log /var/log/messages /var/log/debug /var/log/lpr.log {
- rotate 4
+ missingok
notifempty
compress
- weekly
+ delaycompress
+ sharedscripts
postrotate
invoke-rc.d rsyslog reload > /dev/null
endscript