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
This commit is contained in:
parent
834894fbaf
commit
1a90296659
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user