summaryrefslogtreecommitdiffstats
path: root/abs/core/rsyslog/log_care.sh
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2012-09-03 17:07:43 (GMT)
committerBritney Fransen <brfransen@gmail.com>2012-09-03 17:07:43 (GMT)
commitfde38eda71f1f6efbd2c870b31c4fc71b5c576af (patch)
tree126fb69c2b8ff3f8dff71e4ab7ccfa1ce09110bb /abs/core/rsyslog/log_care.sh
parent39c2b6d5a91924d235fcd803ec3e71ed00cfc468 (diff)
downloadlinhes_pkgbuild-fde38eda71f1f6efbd2c870b31c4fc71b5c576af.zip
linhes_pkgbuild-fde38eda71f1f6efbd2c870b31c4fc71b5c576af.tar.gz
linhes_pkgbuild-fde38eda71f1f6efbd2c870b31c4fc71b5c576af.tar.bz2
rsyslog: increase log retention to 2 weeks
Diffstat (limited to 'abs/core/rsyslog/log_care.sh')
-rw-r--r--abs/core/rsyslog/log_care.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/abs/core/rsyslog/log_care.sh b/abs/core/rsyslog/log_care.sh
index ea1db56..9023a82 100644
--- a/abs/core/rsyslog/log_care.sh
+++ b/abs/core/rsyslog/log_care.sh
@@ -7,7 +7,7 @@ do
echo "Compressing log files"
find /var/log/$DATE* -mtime +1 -exec gzip -9 {} \;
echo "Deleting old log files"
- find /var/log/$DATE* -mtime +7 -exec rm -rf {} \;
+ find /var/log/$DATE* -mtime +12 -exec rm -rf {} \;
echo "Deleting empty directories"
find /var/log/$DATE* -depth -type d -empty -exec rm -rf {} \;
done