logrotate/logrotate-3.7.8-conf.patch

65 lines
1.5 KiB
Diff
Raw Normal View History

Index: examples/logrotate-default
===================================================================
--- examples/logrotate-default.orig 2007-08-29 09:19:36.000000000 +0200
+++ examples/logrotate-default 2009-03-06 14:11:05.000000000 +0100
@@ -14,22 +14,30 @@
# uncomment this if you want your log files compressed
#compress
+# comment these to switch compression to use gzip or another
+# compression scheme
+compresscmd /usr/bin/bzip2
+uncompresscmd /usr/bin/bunzip2
+
+# former versions had to have the compressext set accordingly
+#compressext .bz2
+
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp and btmp -- we'll rotate them here
-/var/log/wtmp {
- monthly
- create 0664 root utmp
- minsize 1M
- rotate 1
-}
-
-/var/log/btmp {
- missingok
- monthly
- create 0600 root utmp
- rotate 1
-}
+#/var/log/wtmp {
+# monthly
+# create 0664 root utmp
+# minsize 1M
+# rotate 1
+#}
+#
+# /var/log/btmp {
+# missingok
+# monthly
+# create 0600 root utmp
+# rotate 1
+#}
# system-specific logs may be also be configured here.
Index: examples/logrotate.wtmp
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ examples/logrotate.wtmp 2009-03-06 14:11:05.000000000 +0100
@@ -0,0 +1,11 @@
+/var/log/wtmp {
+ compress
+ dateext
+ maxage 365
+ rotate 99
+ size=+400k
+ notifempty
+ missingok
+ copytruncate
+}
+