From e18c36c23e9f61d8d062b884f01aadd2fe35e615 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 22 Jan 2010 14:30:00 +0000 Subject: [PATCH] Patch from Joe Atzberger, with modification to max log size, to add a sample logrotate config for /openils/var/log git-svn-id: svn://svn.open-ils.org/ILS/trunk@15364 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/examples/evergreen_logrotate.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Open-ILS/examples/evergreen_logrotate.conf diff --git a/Open-ILS/examples/evergreen_logrotate.conf b/Open-ILS/examples/evergreen_logrotate.conf new file mode 100644 index 0000000000..cc4d2e7dcc --- /dev/null +++ b/Open-ILS/examples/evergreen_logrotate.conf @@ -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 +} -- 2.43.2