From 60232010ad086ed9f337337c697de0c701003e43 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Tue, 22 Sep 2009 23:15:48 +0100 Subject: [PATCH] a few more bsd exclusions Signed-off-by: Stephen Gran --- templates/syslog-ng.conf.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/syslog-ng.conf.erb b/templates/syslog-ng.conf.erb index bb66d300..3d64384d 100644 --- a/templates/syslog-ng.conf.erb +++ b/templates/syslog-ng.conf.erb @@ -192,6 +192,7 @@ filter f_messages { # messages with priority emerg filter f_emerg { level(emerg); }; +<% if kernel == 'Linux' %> # complex filter for messages usually sent to the xconsole filter f_xconsole { facility(daemon,mail) @@ -200,7 +201,7 @@ filter f_xconsole { and level(crit,err,notice)); }; - +<% end %> ###### # logs # order matters if you use "flags(final);" to mark the end of processing in a @@ -349,6 +350,7 @@ log { }; +<% if kernel == 'Linux' %> # daemon.*;mail.*;\ # news.crit;news.err;news.notice;\ # *.=debug;*.=info;\ @@ -358,4 +360,4 @@ log { filter(f_xconsole); destination(dp_xconsole); }; - +<%end%> -- 2.39.2