diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/periodic.erb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/periodic.erb b/templates/periodic.erb index 1ce615a..780821c 100644 --- a/templates/periodic.erb +++ b/templates/periodic.erb @@ -46,3 +46,17 @@ APT::Periodic::Verbose "<%= @verbose %>"; # 1: progress report (actually any string) # 2: + command outputs (remove -qq, remove 2>/dev/null, add -d) # 3: + trace on +<%- unless @random_sleep.nil? -%> +# +APT::Periodic::RandomSleep "<%= @random_sleep %>"; +# - 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. +<%- end -%> |