fix for bug 3951: remove the code to check xcat versions during xcatd restart/reload
This commit is contained in:
parent
a37d0e3ec4
commit
7f7907ae3e
@ -73,18 +73,6 @@ restart)
|
||||
echo -n "Restarting xCATd "
|
||||
if [ -r /etc/profile.d/xcat.sh ]; then
|
||||
. /etc/profile.d/xcat.sh
|
||||
fi
|
||||
$STATUS > /dev/null 2>&1
|
||||
if [ "$?" = "0" ]; then
|
||||
if [ ! -z $XCATROOT ]; then
|
||||
XCATLIBPATH="$XCATROOT/lib/perl"
|
||||
else
|
||||
XCATLIBPATH="/opt/xcat/lib/perl"
|
||||
fi
|
||||
ver=`perl -I $XCATLIBPATH -mxCAT::Version -e 'print xCAT::Version::Version()'`
|
||||
if [ "$ver" \< "Version 2.6" ]; then # force to stop xcatd first when update from version earlier than 2.6
|
||||
$0 stop
|
||||
fi
|
||||
fi
|
||||
xcatd -p /var/run/xcatd.pid && $LOG_SUCCESS || $LOG_FAILURE
|
||||
;;
|
||||
@ -93,18 +81,6 @@ reload)
|
||||
if [ -r /etc/profile.d/xcat.sh ]; then
|
||||
. /etc/profile.d/xcat.sh
|
||||
fi
|
||||
$STATUS > /dev/null 2>&1
|
||||
if [ "$?" = "0" ]; then
|
||||
if [ ! -z $XCATROOT ]; then
|
||||
XCATLIBPATH="$XCATROOT/lib/perl"
|
||||
else
|
||||
XCATLIBPATH="/opt/xcat/lib/perl"
|
||||
fi
|
||||
ver=`perl -I $XCATLIBPATH -mxCAT::Version -e 'print xCAT::Version::Version()'`
|
||||
if [ "$ver" \< "Version 2.6" ]; then # force to stop xcatd first when update from version earlier than 2.6
|
||||
$0 stop
|
||||
fi
|
||||
fi
|
||||
export XCATRELOAD=yes
|
||||
xcatd -p /var/run/xcatd.pid && $LOG_SUCCESS || $LOG_FAILURE
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user