summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2008-09-28 10:40:22 +0200
committerJoerg Jaspert <joerg@debian.org>2008-09-28 10:40:22 +0200
commit7ce54fafab402a942e95efab757d72750b248dae (patch)
tree9554158e2c4420e840183609f4925a0225de2c19 /etc
parent89ab4a06df00456591cea3248af8c6c3710e18ff (diff)
Hooks, Hub
Implement 5 hooks so we can call scripts at various places of the mirror sync. Also make runmirrors optional, depending on if we are a hub or not. Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'etc')
-rw-r--r--etc/ftpsync.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/etc/ftpsync.conf b/etc/ftpsync.conf
index 510ed4d..4844e19 100644
--- a/etc/ftpsync.conf
+++ b/etc/ftpsync.conf
@@ -5,3 +5,24 @@ RSYNC_PASSWORD=PASSWORD
RSYNC_PATH="debian-all"
PROGRAM=ftpsync
MAILTO="somewhere@example.com"
+# Hook scripts can be run at various places during the sync.
+# Leave them blank if you don't want any
+# Hook1: After lock is acquired, before first rsync
+# Hook2: After first rsync, if successful
+# Hook3: After second rsync, if successful
+# Hook4: Right before leaf mirror triggering
+# Hook5: After leaf mirror trigger, only if we have slave mirrors (HUB=true)
+#
+# Note that Hook3 and Hook4 are likely to be called directly after each other.
+# Difference is: Hook3 is called *every* time the second rsync was successful,
+# but even if the mirroring needs to re-run thanks to a second push.
+# Hook4 is only effective if we are done with mirroring.
+HOOK1=
+HOOK2=
+HOOK3=
+HOOK4=
+HOOK5=
+# Do we have leaf mirror to signal we are done and they should sync?
+# If so set it to true and make sure you configure runmirrors.mirrors
+# and runmirrors.conf for your need.
+HUB=true