Package: apt-listbugs
Version: 0.1.35
Severity: minor
X-Debbugs-Cc: rossboy...@stanfordalumni.org

Dear Maintainer,

It would be nice to clean up this minor annoyance before buster's release.

   * What led up to the situation?

   Installed apt-listbugs and logcheck on a debian testing system.
   Every *hour* I get email from logcheck that includes lines like this:
   Apr 30 08:37:06 debtest systemd[1]: Starting Daily apt-listbugs
preferences cleanup...
   Apr 30 08:37:06 debtest systemd[1]: Finished Daily apt-listbugs
preferences cleanup.
    (Obviously logcheck and the email are incidental; the point is the
   "Daily" cleanup is actually run hourly.  However, the emails are
   part of why I find it annoying.)

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

     Investigated why this is happening.  The package has an entry in
   /etc/cron.daily, which seems correct.  But it also has
   /lib/systemd/system/apt-listbugs.timer which includes
   OnCalendar=*-*-* *:20
   I believe this is telling it to trigger something at 20 minutes
   after the hour for every hour.  There is also
   RandomizedDelaySec=20min
   in the same file, which may explain why it seems to run between 20
   and 40 minutes after the hour for me.

   This seems more like a task for anacron for systems that may not be
   up all the time, but I don't know enough about systemd to be sure
   how to turn it off, or if it can handle these situations.

   * What was the outcome of this action?
   Only observations so far, and so no change.  I might change to
   OnCalendar=*-*-* 20:20
   which I think means run at 8:20pm every day.  But the VM is not up
   all the time and so that might miss some times it should run,
   unless the /etc/cron.daily/ entry acts as a safety net.

   * What outcome did you expect instead?
   That a daily cleanup job would only run once a day.

Another work-around for the visible annoyance would be for me to tell
logcheck to ignore the relevant messages.

Thanks for your work on the package:)

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-6-amd64 (SMP w/3 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apt-listbugs depends on:
ii  apt             2.2.3
ii  ruby            1:2.7+2
ii  ruby-debian     0.3.10+b4
ii  ruby-gettext    3.3.3-2
ii  ruby-soap4r     2.0.5-5
ii  ruby-unicode    0.4.4.4-1+b1
ii  ruby-xmlparser  0.7.3-4

Versions of packages apt-listbugs recommends:
ii  ruby-httpclient  2.8.3-2

Versions of packages apt-listbugs suggests:
ii  konqueror [www-browser]  4:20.12.0-4
ii  reportbug                7.10.3
ii  sensible-utils           0.0.14
ii  xdg-utils                1.1.3-4

-- no debconf information

Reply via email to