diff options
Diffstat (limited to 'abs/core/rsyslog')
-rw-r--r-- | abs/core/rsyslog/PKGBUILD | 8 | ||||
-rw-r--r-- | abs/core/rsyslog/log_care.sh | 3 | ||||
-rw-r--r-- | abs/core/rsyslog/rsyslog.conf.linhes | 8 |
3 files changed, 10 insertions, 9 deletions
diff --git a/abs/core/rsyslog/PKGBUILD b/abs/core/rsyslog/PKGBUILD index 5ea3587..a0a8604 100644 --- a/abs/core/rsyslog/PKGBUILD +++ b/abs/core/rsyslog/PKGBUILD @@ -3,7 +3,7 @@ pkgname=rsyslog pkgver=5.8.6 -pkgrel=4 +pkgrel=8 pkgdesc="An enhanced multi-threaded syslogd with a focus on security and reliability" url="http://www.rsyslog.com/" arch=('i686' 'x86_64') @@ -19,7 +19,7 @@ replaces=('syslog-ng') groups=('base') options=('strip' 'zipman' '!libtool') -install=('rsyslog.install') +#install=('rsyslog.install') source=("http://www.rsyslog.com/files/download/rsyslog/rsyslog-$pkgver.tar.gz" 'rsyslog' 'rsyslog.conf.d' 'rsyslog.conf.linhes' log_care.sh) @@ -50,5 +50,5 @@ package() { md5sums=('c46db0496066b82faf735bd4222208d7' 'a18bbcbb6ebdaa13a6ec6d9f3d9eb2da' '1a0cd4530dd5d1439456d5ae230574d9' - 'fae023a980db26f0ee27bd2f80d3e6f2' - '86a7e28b59ad80998b2163860d5d612a') + 'df5cb090691db8640c489981ba3d0798' + 'f20c660ec9444613df0ad078944b31ec') diff --git a/abs/core/rsyslog/log_care.sh b/abs/core/rsyslog/log_care.sh index ea1db56..b0a774b 100644 --- a/abs/core/rsyslog/log_care.sh +++ b/abs/core/rsyslog/log_care.sh @@ -1,4 +1,5 @@ #!/bin/bash +MYTH_RUN_STATUS=1 . /etc/profile YEAR=`date +%Y` LASTYEAR=$(($YEAR - 1)) @@ -7,7 +8,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 diff --git a/abs/core/rsyslog/rsyslog.conf.linhes b/abs/core/rsyslog/rsyslog.conf.linhes index 5d8eb63..24bf3f5 100644 --- a/abs/core/rsyslog/rsyslog.conf.linhes +++ b/abs/core/rsyslog/rsyslog.conf.linhes @@ -27,12 +27,12 @@ if $programname contains 'lighttpd' then ?DynLighttpd & ~ local6.* ?DynMyth -& ~ +#& ~ # Log anything (except mail) of level info or higher. # Don't log private authentication messages! #*.info;mail.none;authpriv.none;cron.none -/var/log/messages -*.info;mail.none;authpriv.none;cron.none -?DailyPerHostLogs -*.info;mail.none;authpriv.none;cron.none -?DynFile +*.info;mail.none;authpriv.none;cron.none;local6.none -?DailyPerHostLogs +*.info;mail.none;authpriv.none;cron.none;local6.none -?DynFile # The authpriv file has restricted access. #authpriv.* /var/log/secure @@ -56,7 +56,7 @@ uucp,news.crit -?DynSpooler # Save boot messages also to boot.log #local7.* /var/log/boot.log -local7.* ?DynFile +local7.* ?DynBoot # Remote Logging (we use TCP for reliable delivery) # An on-disk queue is created for this action. If the remote host is |