add logger call for errors so we can detect them on the MN

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5263 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2010-02-23 15:15:32 +00:00
parent 11d16ebf55
commit c5cbd45911

View File

@ -93,6 +93,7 @@ else # for statelite mode
SIP=`cut -d= -f2 /opt/xcat/xcatinfo`;
else
echo "xCAT management server IP can't be determined.\nexiting...";
logger -t xCAT "xcatdsklspost:xCAT management server IP can't be determined.\nexiting...";
exit;
fi
fi
@ -143,6 +144,7 @@ fi
if [ $downloaded -eq 0 ]; then
hn=`hostname`
echo "Cannot download the postscripts from the xCAT server for node $hn"
logger -t xCAT "xcatdsklspost:Cannot download the postscripts from the xCAT server for node $hn"
exit
fi
@ -173,11 +175,13 @@ else # for statelite mode
if [ "$TRIES" = "$MAX" ]
then
echo "can't mount $SIP:/install/postscripts. I give up... ">/dev/console
logger -t xCAT "xcatdsklspost:Can't mount $SIP:/install/postscripts. exiting... "
exit
fi
TRIES=`expr $TRIES + 1`
S=`expr $RANDOM % 20`
echo "Can't mount $SIP:/install/postscripts... Sleeping $S seconds then trying again" >/dev/console
logger -t xCAT "xcatdsklspost:Can't mount $SIP:/install/postscripts... Sleeping $S seconds then trying again"
sleep $S
done