add retrying for the syncfiles postscript
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11315 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
d502eb5cbc
commit
388adc0109
@ -28,15 +28,28 @@ osname=`uname`
|
||||
xcatpostdir="/xcatpost"
|
||||
|
||||
logger -t xCAT "$0: the OS name = $osname"
|
||||
if [ $osname = "Linux" ]
|
||||
then
|
||||
`$xcatpostdir/startsyncfiles.awk`
|
||||
returncode=$?
|
||||
elif [ $osname = "AIX" ]
|
||||
then
|
||||
`$xcatpostdir/startsyncfiles.aix`
|
||||
returncode=$?
|
||||
fi
|
||||
quit="no"
|
||||
count=5
|
||||
while [ $quit = "no" ]; do
|
||||
if [ $osname = "Linux" ]
|
||||
then
|
||||
`$xcatpostdir/startsyncfiles.awk`
|
||||
returncode=$?
|
||||
elif [ $osname = "AIX" ]
|
||||
then
|
||||
`$xcatpostdir/startsyncfiles.aix`
|
||||
returncode=$?
|
||||
fi
|
||||
|
||||
if [ $returncode -eq 0 ] || [ $count -eq 0 ]; then
|
||||
quit="yes"
|
||||
else
|
||||
let SLI=$RANDOM%10
|
||||
let SLI=SLI+10
|
||||
sleep $SLI
|
||||
fi
|
||||
let count=count-1
|
||||
done
|
||||
|
||||
if [ $returncode -eq 0 ]
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user