fix rsyslog for ubuntu on MN, and don't need to do it in posinst

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12247 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
arifali 2012-04-16 19:40:18 +00:00
parent 1b755d9d48
commit 5006b9db5f
2 changed files with 4 additions and 5 deletions

View File

@ -21,10 +21,6 @@ set -e
case "$1" in
configure)
. /etc/profile.d/xcat.sh
if [ ! `grep -i imuxsock /etc/rsyslog.conf` ] ; then
echo \$ModLoad imuxsock >> /etc/rsyslog.conf
service rsyslog restart
fi
xcatconfig -i -d
update-rc.d xcatd enable
if [ -f /tmp/xCAT-server_upgrade.tmp ]; then

View File

@ -87,7 +87,7 @@ config_Rsyslog_C3()
echo "# xCAT settings" >> $2
#enable to receive remote logging
if [ $isReceiving -eq 1 ]; then
sed 's/^\#\(\s\)*\$ModLoad\(\s\)*imudp.so/\$ModLoad imudp.so/' $2 >/tmp/sed.tmp
sed 's/^\#\(\s\)*\$ModLoad\(\s\)*imudp/\$ModLoad imudp/' $2 >/tmp/sed.tmp
cat /tmp/sed.tmp >$2
sed 's/^\#\(\s\)*\$UDPServerRun/\$UDPServerRun/' $2 >/tmp/sed.tmp
cat /tmp/sed.tmp >$2
@ -118,6 +118,9 @@ if [ "$(uname -s)" = "Linux" ]; then
sysconfig="/etc/sysconfig/rsyslog"
init="/etc/init.d/rsyslog"
isRsyslog=1
if ( pmatch $OSVER "ubuntu*" ) || ( is_lsb_ubuntu ); then
sysconfig="/etc/default/rsyslog"
fi
fi
else
if ( pmatch $OSVER "sles*" ) || ( pmatch $OSVER "suse*" ) || [ -f /etc/SuSE-release ]; then