From 7c56210564b687958e526dceb9e7aefff4176702 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 22 Dec 2014 10:48:36 -0500 Subject: [PATCH] JBAS-258 syslog file cleanup fix comments Signed-off-by: Bill Erickson --- KCLS/misc-scripts/manage-log-files.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/KCLS/misc-scripts/manage-log-files.sh b/KCLS/misc-scripts/manage-log-files.sh index 420c308983..4bb4b229a6 100755 --- a/KCLS/misc-scripts/manage-log-files.sh +++ b/KCLS/misc-scripts/manage-log-files.sh @@ -22,13 +22,13 @@ while getopts "d:c:h" opt; do esac done; -# Delete all Evergreen log files that are older than one year, -# except for the Apache access log and Evergreen activity log. +# Delete all Evergreen log files that are older than DELETE_AGE +# days, except for the Apache access log and Evergreen activity log. /usr/bin/find /var/log/evergreen -type f -ctime +$DELETE_AGE \ -not -name "ap_access*" -not -name "activity*" -delete -# Compress Evergreen log files older than 3 days +# Compress Evergreen log files older than COMPRESS_AGE days /usr/bin/find /var/log/evergreen/ -type f -ctime +$COMPRESS_AGE \ -not -name "*bz2" -exec /bin/bzip2 {} \; -- 2.11.0