[open-ils-commits] r15364 - trunk/Open-ILS/examples (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jan 22 09:30:02 EST 2010
Author: erickson
Date: 2010-01-22 09:30:00 -0500 (Fri, 22 Jan 2010)
New Revision: 15364
Added:
trunk/Open-ILS/examples/evergreen_logrotate.conf
Log:
Patch from Joe Atzberger, with modification to max log size, to add a sample logrotate config for /openils/var/log
Added: trunk/Open-ILS/examples/evergreen_logrotate.conf
===================================================================
--- trunk/Open-ILS/examples/evergreen_logrotate.conf (rev 0)
+++ trunk/Open-ILS/examples/evergreen_logrotate.conf 2010-01-22 14:30:00 UTC (rev 15364)
@@ -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
+}
More information about the open-ils-commits
mailing list