From a8860008555bafac0e97d31f78f726dc0cea5a54 Mon Sep 17 00:00:00 2001 From: linggao Date: Thu, 21 Jun 2012 20:05:22 +0000 Subject: [PATCH] fixed a problem that still logs to localhost for syslog-ng git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13147 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/syslog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT/postscripts/syslog b/xCAT/postscripts/syslog index 91a3bd040..162fda89d 100755 --- a/xCAT/postscripts/syslog +++ b/xCAT/postscripts/syslog @@ -262,6 +262,12 @@ else echo "# xCAT settings" >> $conf_file echo "destination loghost { udp(\"$master\"); };" >> $conf_file echo 'log { source(src); destination(loghost); };' >> $conf_file + + # remove the settings that will log to local files + sed -i '/destination messages/s/^/#/' $conf_file + sed -i '/destination(messages)/s/^/#/' $conf_file + sed -i '/destination warn/s/^/#/' $conf_file + sed -i '/destination(warn)/s/^/#/' $conf_file else if [ -f $conf_file.XCATORIG ]; then rm -f $conf_file