summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-04-24 21:43:27 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-04-24 21:43:27 (GMT)
commit5565e0ae65780f44b7d31e9c8721531abed7fbb4 (patch)
tree7e775f6090984652a3d3d020e9eda13bf1ae895b /abs/core
parentc58f2ef5aae732c9b25d0709b436e7420d466ddd (diff)
downloadlinhes_pkgbuild-5565e0ae65780f44b7d31e9c8721531abed7fbb4.zip
linhes_pkgbuild-5565e0ae65780f44b7d31e9c8721531abed7fbb4.tar.gz
linhes_pkgbuild-5565e0ae65780f44b7d31e9c8721531abed7fbb4.tar.bz2
rsyslog: Add logging rule for mythtv
in addition to logging most things to /var/log/$DATE/messages, also split up each program into their own logging file.
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/rsyslog/PKGBUILD4
-rw-r--r--abs/core/rsyslog/rsyslog.conf.linhes10
2 files changed, 10 insertions, 4 deletions
diff --git a/abs/core/rsyslog/PKGBUILD b/abs/core/rsyslog/PKGBUILD
index a4fbf81..5ea3587 100644
--- a/abs/core/rsyslog/PKGBUILD
+++ b/abs/core/rsyslog/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=rsyslog
pkgver=5.8.6
-pkgrel=2
+pkgrel=4
pkgdesc="An enhanced multi-threaded syslogd with a focus on security and reliability"
url="http://www.rsyslog.com/"
arch=('i686' 'x86_64')
@@ -50,5 +50,5 @@ package() {
md5sums=('c46db0496066b82faf735bd4222208d7'
'a18bbcbb6ebdaa13a6ec6d9f3d9eb2da'
'1a0cd4530dd5d1439456d5ae230574d9'
- '1e4a87a2ffea61c066a0b01fc9392849'
+ 'fae023a980db26f0ee27bd2f80d3e6f2'
'86a7e28b59ad80998b2163860d5d612a')
diff --git a/abs/core/rsyslog/rsyslog.conf.linhes b/abs/core/rsyslog/rsyslog.conf.linhes
index ab6d56f..5d8eb63 100644
--- a/abs/core/rsyslog/rsyslog.conf.linhes
+++ b/abs/core/rsyslog/rsyslog.conf.linhes
@@ -20,13 +20,19 @@ $template DynMail,"/var/log/%$YEAR%-%$MONTH%-%$DAY%/%HOSTNAME%_maillog"
$template DynCron,"/var/log/%$YEAR%-%$MONTH%-%$DAY%/%HOSTNAME%_cron"
$template DynBoot,"/var/log/%$YEAR%-%$MONTH%-%$DAY%/%HOSTNAME%_boot.log"
$template DynSpooler,"/var/log/%$YEAR%-%$MONTH%-%$DAY%/%HOSTNAME%_spooler"
+$template DynLighttpd,"/var/log/%$YEAR%-%$MONTH%-%$DAY%/%HOSTNAME%_lighttpd"
+$template DynMyth,"/var/log/%$YEAR%-%$MONTH%-%$DAY%/%HOSTNAME%_%programname%.%syslogtag:R,ERE,1,ZERO:\[([[:digit:]]{1,})\]--end%.log"
-if $programname contains 'lighttpd' then ?DynFile
+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
# The authpriv file has restricted access.
#authpriv.* /var/log/secure
@@ -50,7 +56,7 @@ uucp,news.crit -?DynSpooler
# Save boot messages also to boot.log
#local7.* /var/log/boot.log
-local7.* ?DynBoot
+local7.* ?DynFile
# Remote Logging (we use TCP for reliable delivery)
# An on-disk queue is created for this action. If the remote host is