From cfabf3f7500075797defd3194525d9e7f6563623 Mon Sep 17 00:00:00 2001 From: Chiradeep Vittal Date: Wed, 6 Oct 2010 15:17:55 -0700 Subject: [PATCH] bug 6202: initial state of logrotate --- patches/xenserver/etc/logrotate.conf | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 patches/xenserver/etc/logrotate.conf diff --git a/patches/xenserver/etc/logrotate.conf b/patches/xenserver/etc/logrotate.conf new file mode 100644 index 00000000000..6ec86796800 --- /dev/null +++ b/patches/xenserver/etc/logrotate.conf @@ -0,0 +1,37 @@ +# see "man logrotate" for details +# rotate log files daily +daily + +# keep 2 days worth +rotate 2 + +# create new (empty) log files after rotating old ones +create + +# use date as a suffix of the rotated file +dateext + +# uncomment this if you want your log files compressed +#compress + +# max size 50M +size 50M + +# 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 + rotate 1 +} + +/var/log/btmp { + missingok + monthly + create 0600 root utmp + rotate 1 +} + +# system-specific logs may be also be configured here.