<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apt/debian/apt.apt-compat.cron.daily, branch 2.9.0</title>
<subtitle>Debians commandline package manager</subtitle>
<id>https://git.kalnischkies.de/apt/atom?h=2.9.0</id>
<link rel='self' href='https://git.kalnischkies.de/apt/atom?h=2.9.0'/>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/'/>
<updated>2021-11-03T22:02:41Z</updated>
<entry>
<title>Use `command -v` instead of `which`</title>
<updated>2021-11-03T22:02:41Z</updated>
<author>
<name>Ville Skyttä</name>
<email>ville.skytta@iki.fi</email>
</author>
<published>2021-11-03T22:02:41Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=48d4b06013ae3d80b95cf72efaf9a5e7468de965'/>
<id>urn:sha1:48d4b06013ae3d80b95cf72efaf9a5e7468de965</id>
<content type='text'>
`which` has been deprecated in debianutils 5.0+. The recommended
replacement, `command -v`, is mandated by Debian policy these days, in
addition to being required by POSIX and its predecessor specs at least
since 1994.

Not found commands cause no output from `command -v` per POSIX, so
remove the redundant 2&gt;&amp;1's while at it.
</content>
</entry>
<entry>
<title>apt-compat.cron.daily: Correctly handle undetermined power status</title>
<updated>2018-01-10T07:33:41Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2018-01-10T07:30:25Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=ca2fcc639c7363a04998f650b96573d806b32dd2'/>
<id>urn:sha1:ca2fcc639c7363a04998f650b96573d806b32dd2</id>
<content type='text'>
If on_ac_power exits with 255 the script would fail at this point
because set -e was set, but it should continue, as 255 means the
power status could not be determined.

LP: #1742378
</content>
</entry>
<entry>
<title>Use the ConditionACPower feature of systemd in the apt-daily service</title>
<updated>2016-06-27T09:22:02Z</updated>
<author>
<name>Nicolas Le Cam</name>
<email>niko.lecam@gmail.com</email>
</author>
<published>2016-06-22T19:39:38Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=51d659e7d8cdce59f910eceeee68e2c2afdb70d4'/>
<id>urn:sha1:51d659e7d8cdce59f910eceeee68e2c2afdb70d4</id>
<content type='text'>
.. instead of hardcoding the functionnality in the apt.systemd.daily
script.

Also make the compatibility cron job provide the same functionnality
for systems that do not use systemd.

Closes: #827930
</content>
</entry>
<entry>
<title>Use systemd.timer instead of a cron job</title>
<updated>2016-04-01T11:02:39Z</updated>
<author>
<name>Michael Vogt</name>
<email>mvo@ubuntu.com</email>
</author>
<published>2016-03-17T07:56:58Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=14669d4b95f0f6a9b215d7fa5aebbc3b7198585d'/>
<id>urn:sha1:14669d4b95f0f6a9b215d7fa5aebbc3b7198585d</id>
<content type='text'>
The rational is that we need to spread the load on the mirrors
that apt update and unattended-upgrades cause. To do so, we
leverage the RandomizeDelay feature of systemd. The other advantage
is that the timer is not run at a fixed daily.daily time but
instead every 24h. This also fixes the problem that the randomized
deplay in the current apt.cron.daily causes other cron jobs to
be deplayed.

A compatibility cron job is also provided for systems that do not
use systemd.

Note that the time is fired two times a day, but the logic inside
of apt.systemd.daily will ensure (via stamp files) that the
servers are hit at most every 24h. Firing two times a day helps
with the worst case update time and it also helps with systems
that are not always on.

LP: #246381, #727685
Closes: #600262, #709675, #663290
</content>
</entry>
</feed>
