Patch from Joe Atzberger, with modification to max log size, to add a sample logrotat...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 22 Jan 2010 14:30:00 +0000 (14:30 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 22 Jan 2010 14:30:00 +0000 (14:30 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15364 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/evergreen_logrotate.conf [new file with mode: 0644]

diff --git a/Open-ILS/examples/evergreen_logrotate.conf b/Open-ILS/examples/evergreen_logrotate.conf
new file mode 100644 (file)
index 0000000..cc4d2e7
--- /dev/null
@@ -0,0 +1,15 @@
+# move/copy/symlink into /etc/logrotate.d/
+
+compress
+/openils/var/log/*.log {
+  # keep the last 4 archived log files along with the current log file
+  #   log log.1.gz log.2.gz log.3.gz log.4.gz
+  # and delete the oldest log file (what would have been log.5.gz)
+  rotate 5
+
+  # if the log file is > 50MB in size, rotate it immediately
+  size 200M
+
+  # for those logs that don't grow fast, rotate them weekly anyway
+  weekly
+}