From de6c531090235613740bea96e30c8b7b1677815c Mon Sep 17 00:00:00 2001 From: linggao Date: Thu, 21 Jun 2012 20:21:43 +0000 Subject: [PATCH] fixed a problem that logs to localhosts for syslog-ng git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13148 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/syslog | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT/postscripts/syslog b/xCAT/postscripts/syslog index 30e7f27d4..718af5990 100755 --- a/xCAT/postscripts/syslog +++ b/xCAT/postscripts/syslog @@ -259,6 +259,11 @@ else echo "# xCAT settings" >> $conf_file echo "destination loghost { udp(\"$master\"); };" >> $conf_file echo 'log { source(src); destination(loghost); };' >> $conf_file + #comment out the line that logs to localhost + 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