fix defect #3599 syslog-ng is shutting down in sles xCAT MN Edit, enable the settings that will log to local files in syslog-ng

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16458 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
immarvin 2013-05-29 12:21:38 +00:00
parent 27ba4fcdbe
commit 8a476a618b

View File

@ -237,6 +237,12 @@ else
echo "# xCAT settings" >> $conf_file
echo "*.debug /var/log/messages rotate 1024K files 5" >> $conf_file
fi
else
# enable the settings that will log to local files in syslog-ng
sed -i '/destination messages/s/^#*//' $conf_file
sed -i '/destination(messages)/s/^#*//' $conf_file
sed -i '/destination warn/s/^#*//' $conf_file
sed -i '/destination(warn)/s/^#*//' $conf_file
fi
#Ubuntu doesn't have sysconfig