Your message dated Thu, 01 Jun 2017 22:33:37 +0000 with message-id <[email protected]> and subject line Bug#744753: fixed in anacron 2.3-24 has caused the Debian Bug report #744753, regarding anacron: Anacron not triggered when system resumes under systemd 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 [email protected] immediately.) -- 744753: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=744753 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: anacron Version: 2.3-19 Severity: normal Tags: patch Anacron currently ships a pm-utils hook script that starts the service when the system is resumed. pm-utils hooks are not executed when the system resumes, having been suspended by systemd. Systemd provides a directory, /usr/lib/systemd/system-sleep that seems to be the closest equivalent to the pm-utils hook directory. A script such as the following can be dropped in there (untested!): #!/bin/bash case "$1" in post) systemctl --fail --no-block start anacron.service ;; suspend|hibernate|hybrid-sleep) systemctl --fail --no-block stop anacron.service ;; esac Note that the systemd-sleep(8) man page says that this directory is a hack for local use only. A better way would be to add this to anacron.service: [Unit] Conflicts=sleep.target Before=sleep.target Which will stop anacron when the system is suspended/hibernated; and to create a new unit, anacron-resume.service: [Unit] After=systemd-suspend.service systemd-hibernate.service systemd-hybrid-sleep.service [Service] ExecStart=/bin/systemctl --no-block --fail start anacron.service [Install] WantedBy=sleep.target Which will start anacron when the system comes back. -- System Information: Debian Release: 7.4 APT prefers stable-updates APT policy: (550, 'stable-updates'), (550, 'stable'), (530, 'testing'), (520, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.12-0.bpo.1-686-pae (SMP w/1 CPU core) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages anacron depends on: ii debianutils 4.3.2 ii libc6 2.18-4 ii lsb-base 4.1+Debian8+deb7u1 Versions of packages anacron recommends: ii cron 3.0pl1-124 ii rsyslog [system-log-daemon] 5.8.11-3 Versions of packages anacron suggests: ii exim4-daemon-heavy [mail-transport-agent] 4.80-7 pn powermgmt-base <none>
--- End Message ---
--- Begin Message ---Source: anacron Source-Version: 2.3-24 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 [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Michael Biebl <[email protected]> (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 [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Mon, 29 May 2017 18:36:12 +0200 Source: anacron Binary: anacron Architecture: source amd64 Version: 2.3-24 Distribution: unstable Urgency: medium Maintainer: Peter Eisentraut <[email protected]> Changed-By: Michael Biebl <[email protected]> Description: anacron - cron-like program that doesn't go by time Closes: 744753 Changes: anacron (2.3-24) unstable; urgency=medium . * Team upload. * Reference anacron and anacrontab man page in anacron.service * Use native systemd timer unit to trigger anacron periodically. When running under systemd, use a native timer unit which triggers anacron.service every hour. If the system was suspended for more then one hour, the timer will activate immediately on resume. The timer uses a randomized delay of up to 5 minutes. This helps with not overloading the system when coming out of suspend. Drop anacron-resume.service, as this service is no longer necessary. (Closes: #744753) Checksums-Sha1: 5cb0f9c5d4f98894b31118e76db2131382c9e0db 1896 anacron_2.3-24.dsc 02ca478a58007a18f45af57bb57e57d62572c1f5 18408 anacron_2.3-24.debian.tar.xz bc5cf8c54479495aafc5c478ea310f93ff656604 35852 anacron-dbgsym_2.3-24_amd64.deb d020085949af880d2444f0296343522ae8f2f567 5915 anacron_2.3-24_amd64.buildinfo 40496876fed628f040a5b07d637895dc9a2a28cf 32492 anacron_2.3-24_amd64.deb Checksums-Sha256: 746e295fd9631400086f6755ed8e858e4b16d681fff5549896e09dac1ad970f8 1896 anacron_2.3-24.dsc 1be67c10e7615547e2ddf99eea101bd0f00f143cac63cb554b5841107d9db12d 18408 anacron_2.3-24.debian.tar.xz 097d9a866cce1317f22a5b5b874d188daa9b20025611353c72bf80c6c6311145 35852 anacron-dbgsym_2.3-24_amd64.deb 5553904fef9b22b81126e1b9f44c51098c25491dc5d947cd6fa1852ced898c2e 5915 anacron_2.3-24_amd64.buildinfo b8de0dfb77c9f0e34853db8b1832d63552d4e56bb428194090383640b5bfc086 32492 anacron_2.3-24_amd64.deb Files: 194f19ef243ab3163384cd3e6af39030 1896 admin optional anacron_2.3-24.dsc 80422040441ab6bb1c1f3761eff8a3a3 18408 admin optional anacron_2.3-24.debian.tar.xz cf28234996d98fabb8fe53caee8c06cc 35852 debug extra anacron-dbgsym_2.3-24_amd64.deb 23d036d088d83aedde6e448c7a0a74b2 5915 admin optional anacron_2.3-24_amd64.buildinfo 3880f72cfa1c138847ed260f993d844b 32492 admin optional anacron_2.3-24_amd64.deb -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEECbOsLssWnJBDRcxUauHfDWCPItwFAlkwk9MACgkQauHfDWCP ItwIPg/+JiBK0TZb77fu0inskWjRVhmCB3sBYKeRvOvEEIdljv9CxLLYRtYGMMzb NrhKp8RrRTxoBKB3ziblrVYSkiMtk9kBzo/hHGXewKVwfMVOWN0ASLERb5DTyYzG jXYKKMnG+cHOQu62DxTLWNqMvMHnVL8elfrsqFe2EvHXmHuO9mWrjAwAAQ61tc1N ldSouDxswWJj1TkuquWaINHxnJp0eqjpcZlzD+h1WT151ohMpTAYilnJVUYlPgN/ 6Ld5Z2zAd13OAupS7D3tv07z/t9g/bBzawlpC02pCIAZutjtfRSuDiDrWC/A6a4l eCOlynYxiZtk6n5PfhIbnjjg14Zk8b0QIJwIqr7f6P59Yfd6AFXaVUZEe8D8pREv X9yOHyUVZytODDnQg9SGKkQ+8uHYZMauG7nbHyunvVndMs+P9Z6sFAlu69mX01TE +jEsEPcMf91P0YZ/txXgGQaBMA1ts4XjqEu/2txC4Hjn5hhf46OOcmtSjdnUGoxn RAHWlM8Daesh23+aAwWsOyG6Y6MYhwI3x3jAHkIl/uCmNJRKEhuXNI2YXxfjyyVq eTXBSNhdqwV11dzEdyOjoMUC655r4tl5/37d8MpW6Qq0FkIl3P3YuEYjtLsdzhg/ mGtZ+WEPhX/EhSOfHhQJ35qXrLRMt0znuIOSspsyd5DNgKXb20c= =AUiD -----END PGP SIGNATURE-----
--- End Message ---

