From a1d8f195cf5b8567d6ea2f039dbe49312af2754b Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 30 Oct 2008 22:47:15 +0100 Subject: runmirrors pushlock sync should now work Signed-off-by: Joerg Jaspert --- etc/common | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'etc') diff --git a/etc/common b/etc/common index 984d695..532f3ea 100644 --- a/etc/common +++ b/etc/common @@ -38,7 +38,6 @@ signal () { PUSHTYPE=${PUSHTYPE:-"all"} PUSHARCHIVE=${PUSHARCHIVE:-""} PUSHCB=${PUSHCB:-""} - PUSHLOCKS=${PUSHLOCKS:-""} # Defaults we always want, no matter what SSH_OPTIONS="-o BatchMode=yes -o SetupTimeOut=45 -o ConnectTimeout=45 -o PasswordAuthentication=no" @@ -76,7 +75,7 @@ signal () { # Step2: Wait for all the other "lock"files to appear. tries=0 # We do not wait forever - while [ ${tries} -lt 30 ]; do + while [ ${tries} -lt 120 ]; do total=0 found=0 for file in ${PUSHLOCKS}; do @@ -85,10 +84,11 @@ signal () { found=$((found + 1)) fi done - if [ ${total} -eq ${found} ]; then + if [ ${total} -eq ${found} ] || [ -f "${LOCKDIR}/all_stage1" ]; then + touch "${LOCKDIR}/all_stage1" break fi - sleep 20 + sleep 5 done rm -f "${PUSHLOCKOWN}" -- cgit v1.2.3