From 1a9029665935dcf8f38cc7c23dbc0df966c4fda2 Mon Sep 17 00:00:00 2001 From: immarvin Date: Tue, 17 Apr 2012 13:01:34 +0000 Subject: [PATCH] fixed defect ID: 3509605 xcatconfig will not setup syslog for xCAT on linux git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12252 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/syslog | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/syslog b/xCAT/postscripts/syslog index 009427943..2f4c56bee 100755 --- a/xCAT/postscripts/syslog +++ b/xCAT/postscripts/syslog @@ -95,7 +95,11 @@ config_Rsyslog_C3() #enable to send the logging to master if [ $isLocal -eq 1 ]; then - touch /var/log/messages + #enable the MN to log all the logs from CN and MN itself + sed 's/\(^[^\#].*\/var\/log\/messages\)/\#\1/g' $2 >/tmp/sed.tmp + cat /tmp/sed.tmp >$2 + echo "*.debug /var/log/messages" >> $2 + touch /var/log/messages else sed 's/^\(\*\..*\)/\#\1/' $2 >/tmp/sed.tmp cat /tmp/sed.tmp >$2