[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#600262: apt: random_sleep should not be executed if anacron has started the cron.daily script



Teodor <mteodor@gmail.com> writes:

> Package: apt
> Version: 0.8.6
> Severity: wishlist
> Tags: patch
>
> Hi,
>
> Currently a 'random_sleep' function is implemented in /etc/cron.daily/apt to avoid
> a DoS on the mirrors. However, on desktop and workstation systems the script is not
> executed at 6:xx in the morning but later at random times after boot by anacron.
> The reason is simple, these systems are not up all the time.
>
> Please apply this patch to avoid 'random_sleep' if the script was started by anacron.

But if the system stays up all night then the jobs are also started by
anacron. This time at the problematic time though.

MfG
        Goswin



Reply to: