summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2008-10-30 23:01:57 +0100
committerJoerg Jaspert <joerg@debian.org>2008-10-30 23:01:57 +0100
commitefbaaf0ce2fe1150744f03d207922018fdd4d492 (patch)
tree4a75a054d96a3d2cce96a190b0d31cdcc4bd4817
parenta1d8f195cf5b8567d6ea2f039dbe49312af2754b (diff)
runmirrors
make waiting delay in staged sync configurable Signed-off-by: Joerg Jaspert <joerg@debian.org>
-rwxr-xr-xbin/runmirrors2
-rw-r--r--etc/common2
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}
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