mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-21 18:50:28 +00:00
Merge pull request #380 from neo954/story50687log
Implement log classification on xCAT MN - Bug Fix
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
missingok
|
||||
sharedscripts
|
||||
postrotate
|
||||
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
|
||||
/bin/kill -HUP `cat /var/run/xcat/cmdlogservice.pid 2> /dev/null` 2> /dev/null || true
|
||||
test -f /var/run/rsyslogd.pid && kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true
|
||||
test -f /var/run/syslogd.pid && kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
|
||||
test -f /var/run/xcat/cmdlogservice.pid && kill -HUP `cat /var/run/xcat/cmdlogservice.pid 2> /dev/null` 2> /dev/null || true
|
||||
endscript
|
||||
}
|
||||
|
@@ -102,7 +102,7 @@ config_Rsyslog_C3()
|
||||
if [ $isLocal -eq 1 ]; then
|
||||
#enable the MN to log all the logs from CN and MN itself
|
||||
sed -i 's/\(^[^\#].*\/var\/log\/messages\)/\#\1/g' $2
|
||||
echo "*.debug /var/log/messages" >> $2
|
||||
echo "#*.debug /var/log/messages" >> $2
|
||||
touch /var/log/messages
|
||||
if ( pmatch $OSVER "ubuntu*" ) || ( is_lsb_ubuntu ) || ( pmatch $OSVER "debian*" ); then
|
||||
chown syslog:adm /var/log/messages
|
||||
@@ -174,7 +174,7 @@ config_rsyslog_V8()
|
||||
sed -i '/^[^#].*\/var\/log\/messages/s/^/#/' $conf_file
|
||||
|
||||
echo "# xCAT settings" >> $conf_file
|
||||
echo "*.debug /var/log/messages" >> $conf_file
|
||||
echo "#*.debug /var/log/messages" >> $conf_file
|
||||
# Need to uncomment the lines $ModLoad imudp.so and $UDPServerRun 514,
|
||||
# to make the MN be able to receive syslog from remote hosts
|
||||
if [ -f "$remoteconf" ]; then
|
||||
|
Reference in New Issue
Block a user