fixed a problem that still logs to localhost for syslog-ng

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13147 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2012-06-21 20:05:22 +00:00
parent d064e984b7
commit a886000855

View File

@ -262,6 +262,12 @@ else
echo "# xCAT settings" >> $conf_file
echo "destination loghost { udp(\"$master\"); };" >> $conf_file
echo 'log { source(src); destination(loghost); };' >> $conf_file
# remove the settings that will log to local files
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
else
if [ -f $conf_file.XCATORIG ]; then
rm -f $conf_file