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
This commit is contained in:
parent
56d219f881
commit
a35c04455a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user