summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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