2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-09 14:21:30 +00:00

Merge pull request #826 from xuweibj/S86265

Add attribute 'syslog', avoid the syslog configuration for certain node
This commit is contained in:
zet809
2016-03-25 17:23:34 +08:00
3 changed files with 3447 additions and 3419 deletions

File diff suppressed because it is too large Load Diff

View File

@ -44,6 +44,9 @@ export PRIMARYNIC
MASTER=#TABLE:noderes:$NODE:xcatmaster#
export MASTER
SYSLOG=#TABLE:noderes:$NODE:syslog#
export SYSLOG
NODEROUTENAMES=#TABLE:noderes:$NODE:routenames#
export NODEROUTENAMES

View File

@ -13,6 +13,13 @@
# OSVER: possible values are sles10, fedora8, redhat5, aix etc.
#=cut
#-------------------------------------------------------------------------------
if [ "$SYSLOG" = "ignore" ]; then
echo "The value of syslog is '$SYSLOG'."
exit 0
elif [ -n "$SYSLOG" ]; then
echo "Warning: The value of syslog '$SYSLOG' is not supported, but will still run syslog script."
fi
if [ "$(uname -s|tr 'A-Z' 'a-z')" = "linux" ];then
str_dir_name=`dirname $0`
. $str_dir_name/xcatlib.sh