From 521dc27e941f7af8ee35c264e8dc5b352d6beb33 Mon Sep 17 00:00:00 2001 From: Raphael Geissert Date: Thu, 26 Apr 2012 23:56:04 -0500 Subject: Retry the sync after a delay if an upstream AUIP file is found --- etc/ftpsync.conf.sample | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc') diff --git a/etc/ftpsync.conf.sample b/etc/ftpsync.conf.sample index e3fcc63..9e8cc65 100644 --- a/etc/ftpsync.conf.sample +++ b/etc/ftpsync.conf.sample @@ -89,6 +89,10 @@ ## synced mirror even if we get multiple pushes in a short timeframe #UPDATEREQUIRED="${TO}/Archive-Update-Required-${MIRRORNAME}" +## Number of seconds to sleep before retrying to sync whenever upstream +## is found to be updating while our update is running +#UIPSLEEP=1200 + ## The trace file is used by a mirror check tool to see when we last ## had a successful mirror sync. Make sure that it always ends up in ## project/trace and always shows the full hostname. -- cgit v1.2.3 From 361ba6bce1a3fabae9da0ab2b97f2cc7360da1d3 Mon Sep 17 00:00:00 2001 From: Raphael Geissert Date: Tue, 1 May 2012 00:14:06 -0500 Subject: Limit the number of update retries In case something went wrong somewhere and upstream's update stalled or there are stale AUIP files, this will prevent ftpsync from retrying without an eventual error message. --- etc/ftpsync.conf.sample | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'etc') diff --git a/etc/ftpsync.conf.sample b/etc/ftpsync.conf.sample index 9e8cc65..e3f5cf5 100644 --- a/etc/ftpsync.conf.sample +++ b/etc/ftpsync.conf.sample @@ -93,6 +93,11 @@ ## is found to be updating while our update is running #UIPSLEEP=1200 +## Number of times the update operation will be retried when upstream +## is found to be updating while our update is running. +## Note that these are retries, so: 1st attempt + retries = total attempts +#UIPRETRIES=3 + ## The trace file is used by a mirror check tool to see when we last ## had a successful mirror sync. Make sure that it always ends up in ## project/trace and always shows the full hostname. -- cgit v1.2.3