From c1e7c8f0dbbfaf406209a21d13cf752712562ba8 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Tue, 22 Sep 2009 23:13:43 +0100 Subject: [PATCH] variable fixup Signed-off-by: Stephen Gran --- templates/syslog-ng.conf.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/syslog-ng.conf.erb b/templates/syslog-ng.conf.erb index 637250b7b..bb66d300b 100644 --- a/templates/syslog-ng.conf.erb +++ b/templates/syslog-ng.conf.erb @@ -83,7 +83,7 @@ options { source s_all { # message generated by Syslog-NG internal(); -<% if $kernel == 'Linux' %> +<% if kernel == 'Linux' %> # standard Linux log source (this is the default place for the syslog() # function to send logs to) unix-stream("/dev/log"); @@ -138,10 +138,12 @@ destination df_news_dot_crit { file("/var/log/news/news.crit" owner("news")); }; destination df_debug { file("/var/log/debug"); }; destination df_messages { file("/var/log/messages"); }; +<% if kernel == 'Linux' %> # pipes # a console to view log messages under X destination dp_xconsole { pipe("/dev/xconsole"); }; +<% end %> # consoles # this will send messages to everyone logged in destination du_all { usertty("*"); }; -- 2.20.1