From 17e382f5a0a5be842b1cfdeb796ae33a9fb41279 Mon Sep 17 00:00:00 2001 From: immarvin Date: Tue, 10 Jan 2017 00:51:04 -0500 Subject: [PATCH] support cumulus os in syslog postscript --- xCAT/postscripts/syslog | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT/postscripts/syslog b/xCAT/postscripts/syslog index 4c4006ae7..d55364e00 100755 --- a/xCAT/postscripts/syslog +++ b/xCAT/postscripts/syslog @@ -148,6 +148,9 @@ config_rsyslog_V8() conf_file="/etc/rsyslog.conf" remoteconf="/etc/rsyslog.d/remote.conf" + #for Cumulus OS inside ONIE switches + cat /etc/os-release |grep -i -e "^NAME=[ \"']*Cumulus Linux[ \"']*$" >/dev/null 2>&1 && remoteconf="/etc/rsyslog.d/99-syslog.conf" + # If this is a Management Node or Service Node, then it will be receiving syslog entries from the # compute nodes. Management Node is receiving from Service Nodes and possibly compute nodes. # They will all be put in /var/log/messages