do not use nodels --version in /etc/init.d/xcatd
This commit is contained in:
parent
f11aa5cc6d
commit
37be3cd9d7
@ -76,7 +76,12 @@ restart)
|
||||
fi
|
||||
$STATUS > /dev/null 2>&1
|
||||
if [ "$?" = "0" ]; then
|
||||
ver=`nodels --version`
|
||||
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
|
||||
@ -90,7 +95,12 @@ reload)
|
||||
fi
|
||||
$STATUS > /dev/null 2>&1
|
||||
if [ "$?" = "0" ]; then
|
||||
ver=`nodels --version`
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user