From ec80327962df1ee6d1bc89974d57881960609cc4 Mon Sep 17 00:00:00 2001 From: immarvin Date: Wed, 17 Jun 2015 10:07:39 -0400 Subject: [PATCH] turn on tcp syslog reception to receive syslog from anaconda --- xCAT/postscripts/syslog | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xCAT/postscripts/syslog b/xCAT/postscripts/syslog index bacb9ff45..c87f872f1 100755 --- a/xCAT/postscripts/syslog +++ b/xCAT/postscripts/syslog @@ -96,6 +96,14 @@ config_Rsyslog_C3() cat /tmp/sed.tmp >$2 sed 's/^\#\(\s\)*\$UDPServerRun/\$UDPServerRun/' $2 >/tmp/sed.tmp cat /tmp/sed.tmp >$2 + + + sed -i -e '/# Provides TCP syslog reception/,/#### GLOBAL DIRECTIVES ####/c \ +# Provides TCP syslog reception \ +$ModLoad imtcp \ +$InputTCPServerRun 514 \ +#### GLOBAL DIRECTIVES #### \ + ' /etc/rsyslog.conf fi #enable to send the logging to master