2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

fix issue#1159@github,add support for udp/tcp syslog reception for rsyslog shipped in ubuntu16.04

This commit is contained in:
immarvin 2016-05-20 02:14:37 -04:00
parent f8cea1db80
commit de21a76fdb

View File

@ -195,6 +195,16 @@ config_rsyslog_V8()
s/#\$ModLoad imtcp.so/\$ModLoad imtcp.so/;
s/#\$InputTCPServerRun <port>/\$InputTCPServerRun 514/' $remoteconf
fi
#ubuntu16.04 ships rsyslog 8.16.0,which does not ship remote.conf
#the configuration for UDP and TCP syslog reception is in rsyslog.conf
if [ -f "$conf_file" ]; then
sed -i 's/#module(load="imudp")/module(load="imudp")/;
s/#input(type="imudp" port="514")/input(type="imudp" port="514")/;
s/#module(load="imtcp")/module(load="imtcp")/;
s/#input(type="imtcp" port="514")/input(type="imtcp" port="514")/' $conf_file
fi
else
# not logging local, forward logging
# backup the existing remote.conf file from the install