Re: systemd[1]: Starting Daily apt upgrade and clean activities...
Hello,
On Tue, Feb 08, 2022 at 02:25:35PM -0500, Lee wrote:
> Apparently the syslog message
> systemd[1]: Starting Daily apt upgrade and clean activities...
> is caused by systemd / apt-daily.timer - correct?
No, that one is from apt-daily-upgrade.timer:
$ grep -r "upgrade and clean" /lib/systemd/
/lib/systemd/system/apt-daily-upgrade.timer:Description=Daily apt upgrade and clean activities
/lib/systemd/system/apt-daily-upgrade.service:Description=Daily apt upgrade and clean activities
$ systemctl cat apt-daily-upgrade
# /lib/systemd/system/apt-daily-upgrade.service
[Unit]
Description=Daily apt upgrade and clean activities
Documentation=man:apt(8)
ConditionACPower=true
After=apt-daily.service network.target network-online.target
systemd-networkd.servic>
[Service]
Type=oneshot
ExecStartPre=-/usr/lib/apt/apt-helper wait-online
ExecStart=/usr/lib/apt/apt.systemd.daily install
KillMode=process
TimeoutStopSec=900
> I'm sure I don't want any automatic apt upgrade happening, but what
> are the "clean activities"?
Upgrades only happen if you have allowed unattended-upgrades, so
don't be concerned by the description of the service saying
"upgrade".
"clean" refers to "apt-get clean" and "apt-get autoclean".
See the actual script /usr/lib/apt/apt.systemd.daily for the apt
configuration settings which would allow these things to happen and
control how often they happen.
Cheers,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting
Reply to: