summaryrefslogtreecommitdiff
path: root/debian/apt.cron.daily
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-08-14 10:50:56 +0200
committerJulian Andres Klode <jak@debian.org>2015-08-14 10:50:56 +0200
commit51c4e07f4cba0615ff269b5a8d04dfd3d1313b00 (patch)
tree40ce3c71671144c3d367d42c06a7dfa91eb8dc5e /debian/apt.cron.daily
parentdd14b7a562c54bb9ce551da1f8a80c78da5a4b6e (diff)
parent14c50b58e938cf78ce2d32d4ec39979f7575c543 (diff)
Merge branch 'debian/experimental' of https://github.com/DonKult/apt into debian/experimental
Diffstat (limited to 'debian/apt.cron.daily')
-rw-r--r--debian/apt.cron.daily13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily
index 61d6aa6f0..765dd4ae4 100644
--- a/debian/apt.cron.daily
+++ b/debian/apt.cron.daily
@@ -68,6 +68,19 @@
# 1: progress report (actually any string)
# 2: + command outputs (remove -qq, remove 2>/dev/null, add -d)
# 3: + trace on
+#
+# APT::Periodic::RandomSleep "1800";
+# - The apt cron job will delay its execution by a random
+# time span between zero and 'APT::Periodic::RandomSleep'
+# seconds.
+# This is done because otherwise everyone would access the
+# mirror servers at the same time and put them collectively
+# under very high strain.
+# You can set this to '0' if you are using a local mirror and
+# do not care about the load spikes.
+# Note that sleeping in the apt job will be delaying the
+# execution of all subsequent cron.daily jobs.
+#
check_stamp()
{