how to check if 02periodic works

Kernels & Hardware, configuring network, installing services

how to check if 02periodic works

Postby fred44nl » 2018-08-05 10:50

I am running Debian 9 and have created a file 02periodic in /etc/apt/apt.conf.d
the contents if 02periodic is:
// Control parameters for cron jobs by /etc/cron.daily/apt //

// Enable the update/upgrade script (0=disable)
APT::Periodic::Enable "1";

// Do "apt-get update" automatically every n-days (0=disable)
APT::Periodic::Update-Package-Lists "1";

// Do "apt-get upgrade --download-only" every n-days (0=disable)
APT::Periodic::Download-Upgradeable-Packages "1";

// Do "apt-get autoclean" every n-days (0=disable)
APT::Periodic::AutocleanInterval "7";
APT::Periodic::MaxAge "5";
APT::Periodic::MinAge "2";
APT::Periodic::Verbose "0";


but how do I check if this file is handled by cron/anacron ??
Debian 9 on Compulab Fitlet2
User avatar
fred44nl
 
Posts: 19
Joined: 2018-07-14 08:54

Re: how to check if 02periodic works

Postby bw123 » 2018-08-05 11:02

The wiki suggests configuring apt-listchanges to send you email, or looking in the logs.
https://wiki.debian.org/UnattendedUpgrades
User avatar
bw123
 
Posts: 3184
Joined: 2011-05-09 06:02
Location: TN_USA

Re: how to check if 02periodic works

Postby fred44nl » 2018-08-05 17:50

in /vor/log/syslog, there is:
Aug 5 06:05:09 Debian systemd[1]: Starting Daily apt upgrade and clean activities...
Aug 5 06:05:10 Debian systemd[1]: Started Daily apt upgrade and clean activities.
Aug 5 06:05:10 Debian systemd[1]: apt-daily-upgrade.timer: Adding 51min 45.255872s random time.
Aug 5 06:05:10 Debian systemd[1]: apt-daily-upgrade.timer: Adding 35min 152.233ms random time.


is this good enough ??
Debian 9 on Compulab Fitlet2
User avatar
fred44nl
 
Posts: 19
Joined: 2018-07-14 08:54

Re: how to check if 02periodic works

Postby fred44nl » 2018-08-07 08:28

there was a minor kernel-upgrade this morning.
and it appeared all by itself, so 02periodic is working :)
Debian 9 on Compulab Fitlet2
User avatar
fred44nl
 
Posts: 19
Joined: 2018-07-14 08:54


Return to System configuration

Who is online

Users browsing this forum: SavoyRoad, w4kh and 4 guests

fashionable