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

Bug#866041: marked as done (anacron: may execute daily/weekly/monthly jobs shortly after midnight)



Your message dated Thu, 29 Nov 2018 19:49:00 +0000
with message-id <E1gSSJ2-000Crf-Qn@fasolo.debian.org>
and subject line Bug#866041: fixed in anacron 2.3-27~exp1
has caused the Debian Bug report #866041,
regarding anacron: may execute daily/weekly/monthly jobs shortly after midnight
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
866041: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866041
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: anacron
Version: 2.3-24
Severity: normal
Tags: patch

Hello,
I see that bug #744753 has been solved by changing the frequency at
which anacron checks whether there are jobs to be executed.
When systemd is PID 1, anacron performs this check hourly via
timer, rather than daily at 7:30, as done on boxes where systemd is
*not* PID 1 (/etc/cron.d/anacron).

This behavior change has a significant side effect: if the box
is up and running at midnight, anacron may begin to execute
daily (and possibly also weekly or monthly) jobs shortly after.
Maybe it will (attempt to) start a backup or something like that,
after midnight, when it could be time to shut the box down...

This is inconsistent with the old behavior and with the behavior
of boxes with non-systemd init systems (where the check is performed
at boot or daily at 7:30, if the box is up and running at that time
of the day).

With the attached patch, the behavior becomes consistent with
the non-systemd one. Thanks to the Persistent=true directive,
any skipped checks will be catched up on boot or on resume,
but the check won't be performed between midnight and 7:30,
unless the box is booted/resumed in that time interval.

I hope this patch may be accepted.

Thanks for your time!
Bye.


-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages anacron depends on:
ii  debianutils          4.8.1.1
ii  init-system-helpers  1.48
ii  libc6                2.24-12
ii  lsb-base             9.20161125

Versions of packages anacron recommends:
ii  cron [cron-daemon]           3.0pl1-128+b1
ii  rsyslog [system-log-daemon]  8.27.0-3

Versions of packages anacron suggests:
ii  exim4-daemon-light [mail-transport-agent]  4.89-3
pn  powermgmt-base                             <none>

-- no debconf information
diff -ruN a/debian/anacron.timer b/debian/anacron.timer
--- a/debian/anacron.timer	2017-05-29 18:36:12.000000000 +0200
+++ b/debian/anacron.timer	2017-06-25 11:19:55.071811795 +0200
@@ -2,7 +2,7 @@
 Description=Trigger anacron every hour
 
 [Timer]
-OnCalendar=hourly
+OnCalendar=*-*-* 07:30
 RandomizedDelaySec=5m
 Persistent=true
 

--- End Message ---
--- Begin Message ---
Source: anacron
Source-Version: 2.3-27~exp1

We believe that the bug you reported is fixed in the latest version of
anacron, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 866041@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Boyuan Yang <byang@debian.org> (supplier of updated anacron package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 29 Nov 2018 14:09:50 -0500
Source: anacron
Binary: anacron
Architecture: source
Version: 2.3-27~exp1
Distribution: experimental
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Boyuan Yang <byang@debian.org>
Description:
 anacron    - cron-like program that doesn't go by time
Closes: 565480 851633 866041 913584 914795
Changes:
 anacron (2.3-27~exp1) experimental; urgency=medium
 .
   * QA upload.
   * debian/apm.d,pm-utils*:
     Remove trigger of apmd and pm-tuils since those tools are both
     obsoleted. (Closes: #565480)
   * debian/anacron.udev:
     Also drop udev rules to trigger service on power online; this
     already raised some regressions that battery-powered mouses and
     keyboards' action can also trigger event as well, which made
     anacron run too frequently. (Closes: #914795)
   * debian/anacron.service: Add [Install] section back since enabling
     this service is harmless and removing it would left broken symlink
     in the system. (Closes: #913584)
   * debian/anacron.maintscript: Use .maintscript file to store
     instructions of dpkg-maintscript-helper. Thanks to Michael Biebl
     for the suggestion.
   * debian/anacron.timer: Do not trigger hourly timer between 23:30
     and 07:30 for systemd-enabled systems. This prevents daily /
     monthly jobs from executing shortly after midnight.
     (Closes: #866041)
   * debian/cron.d: Switch from trigger daily to only trigger anacron
     hourly between 07:30 to 23:30. The cron trigger will only work
     when systemd is not enabled. (Closes: #851633)
   * anacron.8: Further document Debian-specific modifications and
     the way anacron is triggered on the system.
Checksums-Sha1:
 057fe811220862dde394ccde02b0b951b853f701 1828 anacron_2.3-27~exp1.dsc
 1bdb392d079cce24f81948677aa07187cfff3028 20236 anacron_2.3-27~exp1.debian.tar.xz
 41e2487ab3c02d3808c4c4640f0b55d704eae1b5 5546 anacron_2.3-27~exp1_amd64.buildinfo
Checksums-Sha256:
 4342c3189857b1496ed69fd428d36e86c839960506e5420bd5da9f84491bec97 1828 anacron_2.3-27~exp1.dsc
 9fde70a3cd423e2e7aa4fb5a4e2642f7c611d5b195af0cc5d876d50332c8e959 20236 anacron_2.3-27~exp1.debian.tar.xz
 7e28b45bca569844f24291ca5db18cae4a7396854c825e196b58ccb001c67865 5546 anacron_2.3-27~exp1_amd64.buildinfo
Files:
 6ef3c8643adaf385856b3c810cfb3e3e 1828 admin optional anacron_2.3-27~exp1.dsc
 9bd8e16e432c72da84a3d2550ae363b9 20236 admin optional anacron_2.3-27~exp1.debian.tar.xz
 7ba2abadcba75fefc356539d2193f477 5546 admin optional anacron_2.3-27~exp1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfncpR22H1vEdkazLwpPntGGCWs4FAlwAOeIACgkQwpPntGGC
Ws6JUA/+Mn2WBaVCxiYBdMlWPa1w/haJohjxV8aFpcQyHKlVGWQYDcfy0V2QokQS
PKXInGKVp8owgIfO2T4YBFnsux59OAmTlGQJwPG3A0lOLzIBjBmFrH6EGMWkkn1N
aKmTkqTXyVkFUq/AqVzH/UgGHAx9lrpXsFjKx5h05vAsIG8ojjzgK8uWmlEsAS/C
2RJ8uQzox28JJ7gqilkTY9lG5Z41t3ubGbVuyOmx+hjrYeqxSLTim7VjmTeyM6XQ
cNHuV1r2z93QYHFBlxgK97gRtg+8fUw7mtG54mM1suou04/EgHQNJCNDul5bxNYw
+Ap3mtFi4xQltyHjNM3f+sHZN6o1IIpEkm3zFQWHkW/qhlePGGpvId8xENCCOz+6
2o3/AEOfr2oRFc4dlmiCI40hJyJCgfSjZqvLizt4U9AE1L10+c6V93I4cyiQK5sD
a3++Ai6wyM993sbV/UvW+6JKUEec6C/YL3TZCilx459FuF9+33KGKxJUqK4Cck3v
F8KyakzcNDwmO716Rvp+2uLkem4BGbmKB751gBqGjduOSXDXtGJM526vLPMrgtWf
HUZF5CK8I0avgvw6nfElarxGe071rm8MTDrALk8vxOPP7Pyh+Epg/FfhrSH1PYZG
EwyNiixeBo/OaIx5eizzML6wz43vA7EZ0WRPZKq1W+aKqtfJ3Ws=
=WkfH
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: