Package: anacron
Version: 2.3-23
Severity: wishlist
Tags: patch
Content-Type: multipart/mixed; boundary="===2253939264364133980=="
MIME-Version: 1.0
From: Nathan Schulte
To: Debian Bug Tracking System
Subject: anacron: run anacron hourly
Message-ID: <148462476233.23089.5447684752014803815.reportbug@desmas-l>
X-Mailer: reportbug 7.1.2
Date: Mon, 16 Jan 2017 21:46:02 -0600
This is a multi-part MIME message sent by reportbug.
--===2253939264364133980==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: anacron
Version: 2.3-23
Severity: wishlist
Tags: patch
Currently, Anacron is setup to run once daily. While this configuration works
fine, it ends up only supporting longer-duration power-cycles; that is, cycles
greater than a day. This is probably good for some server configurations, but
this is not good for desktop and mobile (laptop) systems that are powered off
daily or even more periodically.
In these cases, running Anacron hourly allows the daily scripts to be serviced
by Anacron as a user expects. I believe this will resolve these two bug
reports:
1) #619648 cron.daily doesn't execute scheduled scripts
2) #672061 [anacron] Daily cronjobs in crontabs of users aren't ran by
anacron.
I believe other distributions provide this hourly hook for Anacron, and it may
even be in the Anacron source. I can dig up references if needed. I have
supplied a patch w/ my proposed changes.
Thanks,
--
Nathan Schulte
-- System Information:
Debian Release: stretch/sid
APT prefers buildd-unstable
APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (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
ii init-system-helpers 1.46
ii libc62.24-8
ii lsb-base 9.20161125
Versions of packages anacron recommends:
ii cron [cron-daemon] 3.0pl1-128
ii rsyslog [system-log-daemon] 8.23.0-2
Versions of packages anacron suggests:
ii powermgmt-base 1.31+nmu1
ii sendmail-bin [mail-transport-agent] 8.15.2-8
-- Configuration Files:
/etc/cron.d/anacron changed [not included]
-- no debconf information
--===2253939264364133980==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="0001-run-anacron-hourly-at-27-minutes.patch"
>From 831b95d00dc235ed1c34fba0abc831395901226a Mon Sep 17 00:00:00 2001
From: Nathan Schulte
Date: Mon, 16 Jan 2017 21:33:24 -0600
Subject: [PATCH] run anacron hourly, at 27 minutes
---
debian/cron.d | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/debian/cron.d b/debian/cron.d
index 1691ffe..cf95568 100644
--- a/debian/cron.d
+++ b/debian/cron.d
@@ -3,4 +3,5 @@
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-30 7* * * root test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d
anacron start >/dev/null
+# run anacron every hour
+27 0* * * root test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d
anacron start >/dev/null
--
2.11.0
--===2253939264364133980==--
-- System Information:
Debian Release: stretch/sid
APT prefers buildd-unstable
APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (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
ii init-system-helpers 1.46
ii libc62.24-8
ii lsb-base 9.20161125
Versions of packages anacron recommends:
ii cron [cron-daemon] 3.0pl1-128
ii rsyslog [system-log-daemon] 8.23.0-2
Versions of packages anacron suggests:
ii powermgmt-base 1.31+nmu1
ii sendmail-bin [mail-transport-agent] 8.15.2-8
-- Configuration Files:
/etc/cron.d/anacron changed:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
27 ** * * roottest -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d
anacron start >/dev/null
-- no debconf information
>From 831b95d00dc235ed1c34fba0abc831395901226a Mon Sep 17 00:00:00 2001
From: Nathan Schulte
Date: Mon, 16 Jan 2017 21:33:24 -0600
Subject: [PATCH] run anacron hourly, at 27 minutes
---
debian/cron.d | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/debian/cron.d b/debian/cron.d
index 1691ffe..cf95568 100644
--- a/debian/cron.d
+++ b/debian/cron.d
@@ -3,4 +3,5 @@
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bi