Accepting request 53330 from Base:System

Accepted submit request 53330 from user elvigia

OBS-URL: https://build.opensuse.org/request/show/53330
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/logrotate?expand=0&rev=20
This commit is contained in:
Ruediger Oertel 2010-11-18 15:14:01 +00:00 committed by Git OBS Bridge
commit b775156ab1
2 changed files with 25 additions and 33 deletions

View File

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

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Nov 18 12:44:55 UTC 2010 - lnussel@suse.de
- also rotate /var/log/btmp
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 14 13:01:46 UTC 2010 - puzel@novell.com Tue Sep 14 13:01:46 UTC 2010 - puzel@novell.com