diff options
author | Joerg Jaspert <joerg@debian.org> | 2008-10-30 23:01:57 +0100 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2008-10-30 23:01:57 +0100 |
commit | efbaaf0ce2fe1150744f03d207922018fdd4d492 (patch) | |
tree | 4a75a054d96a3d2cce96a190b0d31cdcc4bd4817 | |
parent | a1d8f195cf5b8567d6ea2f039dbe49312af2754b (diff) |
runmirrors
make waiting delay in staged sync configurable
Signed-off-by: Joerg Jaspert <joerg@debian.org>
-rwxr-xr-x | bin/runmirrors | 2 | ||||
-rw-r--r-- | etc/common | 2 |
2 files changed, 3 insertions, 1 deletions
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} @@ -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 |