From a35c04455a6d6b8aaf4e818dda521bc755a07ecb Mon Sep 17 00:00:00 2001 From: immarvin Date: Tue, 17 Apr 2012 12:52:29 +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/branches/2.7@12251 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/syslog | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT/postscripts/syslog b/xCAT/postscripts/syslog index 6eb91f89a..30e7f27d4 100755 --- a/xCAT/postscripts/syslog +++ b/xCAT/postscripts/syslog @@ -96,6 +96,10 @@ 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 else sed 's/^\(\*\..*\)/\#\1/' $2 >/tmp/sed.tmp cat /tmp/sed.tmp >$2