Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#13587 - anacron should put timestamp updating scripts in /etc/cron.{daily,weekly,monthly}

Attached to Project: Community Packages
Opened by Paride Legovini (torn) - Friday, 27 February 2009, 19:24 GMT
Last edited by Eric Belanger (Snowman) - Friday, 01 May 2009, 05:57 GMT
Task Type Feature Request
Category
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

By default anacron honors the script in /etc/cron.{daily,weekly,monthly}. This is good, but if cron and anacron are both running it happens that these scripts get runt two consecutive times, one time by cron, one time by anacron.

In these directories there should be a script that updates the anacron's timestamps for that specific job, e.g.

/etc/cron.daily/00anacron:

----
#!/bin/sh
#
# Updates anacron time stamps.

test -x /usr/sbin/anacron || exit 0
anacron -u cron.daily
----

The script is called 00anacron to assure that it will be executed before the other scripts.
This task depends upon

Closed by  Eric Belanger (Snowman)
Friday, 01 May 2009, 05:57 GMT
Reason for closing:  Implemented
Additional comments about closing:  implemented in anacron 2.3-9

Loading...