fix for bug 3951: remove the code to check xcat versions during xcatd restart/reload

This commit is contained in:
ligc 2014-01-08 23:47:28 +08:00
parent 41a16bb370
commit 9e81eccc66

View File

@ -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
;;