From efbaaf0ce2fe1150744f03d207922018fdd4d492 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 30 Oct 2008 23:01:57 +0100 Subject: runmirrors make waiting delay in staged sync configurable Signed-off-by: Joerg Jaspert --- bin/runmirrors | 2 ++ etc/common | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/runmirrors b/bin/runmirrors index c326665..9d31b59 100755 --- a/bin/runmirrors +++ b/bin/runmirrors @@ -60,6 +60,8 @@ PROGRAM=${PROGRAM:-"${NAME}-$(hostname -s)"} SSH_OPTS=${SSH_OPTS:-""} # Whats our archive name? We will also tell our leafs about it PUSHARCHIVE=${PUSHARCHIVE:-"${CONF}"} +# How long to wait for mirrors to do stage1 if we have multi-stage syncing +PUSHDELAY=${PUSHDELAY:-240} # Some sane defaults cd ${BASEDIR} diff --git a/etc/common b/etc/common index 532f3ea..ad8260f 100644 --- a/etc/common +++ b/etc/common @@ -75,7 +75,7 @@ signal () { # Step2: Wait for all the other "lock"files to appear. tries=0 # We do not wait forever - while [ ${tries} -lt 120 ]; do + while [ ${tries} -lt ${PUSHDELAY} ]; do total=0 found=0 for file in ${PUSHLOCKS}; do -- cgit v1.2.3