fix the defect that force to stop xcatd for each restart

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13795 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2012-09-14 03:13:35 +00:00
parent 4018deb485
commit b44c562e4e

View File

@ -76,7 +76,8 @@ restart)
fi
$STATUS > /dev/null 2>&1
if [ "$?" = "0" ]; then
if ! nodels --version |grep -q 'Version 2.6'; then #upgrade or downgrade from another major release, stop it just in case
ver=`nodels --version`
if [[ $ver < "Version 2.6" ]]; then # force to stop xcatd first when update from version earlier than 2.6
$0 stop
fi
fi
@ -89,7 +90,8 @@ reload)
fi
$STATUS > /dev/null 2>&1
if [ "$?" = "0" ]; then
if ! nodels --version |grep -q 'Version 2.6'; then #upgrade or downgrade from another major release, stop it just in case
ver=`nodels --version`
if [[ $ver < "Version 2.6" ]]; then # force to stop xcatd first when update from version earlier than 2.6
$0 stop
fi
fi