From: Stephen Gran Date: Tue, 22 Sep 2009 22:15:48 +0000 (+0100) Subject: a few more bsd exclusions X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=60232010ad086ed9f337337c697de0c701003e43;p=mirror%2Fdsa-puppet.git a few more bsd exclusions Signed-off-by: Stephen Gran --- diff --git a/templates/syslog-ng.conf.erb b/templates/syslog-ng.conf.erb index bb66d300b..3d64384dc 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%>