summaryrefslogtreecommitdiffstats
path: root/abs
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
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')
-rw-r--r--abs/core/rsyslog/PKGBUILD4
-rw-r--r--abs/core/rsyslog/log_care.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/abs/core/rsyslog/PKGBUILD b/abs/core/rsyslog/PKGBUILD
index 5ea3587..129b0d1 100644
--- a/abs/core/rsyslog/PKGBUILD
+++ b/abs/core/rsyslog/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=rsyslog
pkgver=5.8.6
-pkgrel=4
+pkgrel=5
pkgdesc="An enhanced multi-threaded syslogd with a focus on security and reliability"
url="http://www.rsyslog.com/"
arch=('i686' 'x86_64')
@@ -51,4 +51,4 @@ md5sums=('c46db0496066b82faf735bd4222208d7'
'a18bbcbb6ebdaa13a6ec6d9f3d9eb2da'
'1a0cd4530dd5d1439456d5ae230574d9'
'fae023a980db26f0ee27bd2f80d3e6f2'
- '86a7e28b59ad80998b2163860d5d612a')
+ '2f795681e12f8bc43e8bea28dc020dcb')
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