fixed a problem that logs to localhosts for syslog-ng

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13148 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2012-06-21 20:21:43 +00:00
parent ec2e1f2e5f
commit de6c531090

View File

@ -259,6 +259,11 @@ else
echo "# xCAT settings" >> $conf_file
echo "destination loghost { udp(\"$master\"); };" >> $conf_file
echo 'log { source(src); destination(loghost); };' >> $conf_file
#comment out the line that logs to localhost
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