Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_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#19123 - [dcron] cron.monthly not running

Attached to Project: Arch Linux
Opened by x33a (x33a) - Friday, 16 April 2010, 02:02 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 02 May 2011, 08:50 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Paul Mattal (paul)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

I was checking the cronstamps package and found that cron.monthly hasn't run since february.

$ ls -l
total 16
-rw-r--r-- 1 root root 16 Apr 16 06:18 root.sys-daily
-rw-r--r-- 1 root root 16 Apr 16 06:47 root.sys-hourly
-rw-r--r-- 1 root root 16 Feb 17 06:03 root.sys-monthly
-rw-r--r-- 1 root root 16 Apr 13 05:37 root.sys-weekly


Additional info:
* package version(s): dcron 4.4-2

* config and/or log files etc.

$ crontab -l
# root crontab
# DO NOT EDIT THIS FILE MANUALLY! USE crontab -e INSTEAD

# man 1 crontab for acceptable formats:
# <minute> <hour> <day> <month> <dow> <tags and command>
# <@freq> <tags and command>

# SYSTEM DAILY/WEEKLY/... FOLDERS
@hourly ID=sys-hourly /usr/sbin/run-cron /etc/cron.hourly
@daily ID=sys-daily /usr/sbin/run-cron /etc/cron.daily
@weekly ID=sys-weekly /usr/sbin/run-cron /etc/cron.weekly
@monthly ID=sys-monthly /usr/sbin/run-cron /etc/cron.monthly


56 07 * * * /usr/sbin/pppoe-stop
57 07 * * * /usr/sbin/pppoe-start

$ ls /etc/cron.monthly
man-db
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Monday, 02 May 2011, 08:50 GMT
Reason for closing:  Fixed
Additional comments about closing:  dcron 4.5-1
Comment by x33a (x33a) - Friday, 16 April 2010, 02:08 GMT
Edit: Sorry, the package is in core and not in extra.
Comment by Андрей (amoz) - Wednesday, 04 August 2010, 18:30 GMT
confirm the same behaviour. root.sys-* jobs are original from package.

[fuxter@fuxter-laptop ~]$ LANG=C ls -l /var/spool/cronstamps/
total 0
-rw-r--r-- 1 root root 16 Aug 4 19:24 root.backup_daily
-rw-r--r-- 1 root root 16 Jun 3 20:44 root.backup_monthly
-rw-r--r-- 1 root root 16 Aug 2 16:51 root.backup_weekly
-rw-r--r-- 1 root root 16 Aug 4 19:24 root.sys-daily
-rw-r--r-- 1 root root 16 Aug 4 21:20 root.sys-hourly
-rw-r--r-- 1 root root 16 May 27 07:14 root.sys-monthly
-rw-r--r-- 1 root root 16 Aug 2 16:51 root.sys-weekly
[fuxter@fuxter-laptop ~]$ LANG=C date
Wed Aug 4 22:27:12 MSD 2010
[fuxter@fuxter-laptop ~]$
Comment by Pete (tam1138) - Thursday, 05 August 2010, 17:55 GMT
The attached patch fixes this, which I've also sent to the dcron developer. Please mark this bug as Upstream.
Comment by x33a (x33a) - Thursday, 19 August 2010, 14:08 GMT
hi, i recently reinstalled arch (aug 1), and today i saw in the logs that cron.monthly ran. interesting thing, as there haven't been any updates to dcron, and i was using this same version with the previous installation.

Though there has been an update to glibc (a dependency), but i don't know if that has anything to do with this issue.
Comment by Paul Gideon Dann (giddie) - Wednesday, 22 December 2010, 10:57 GMT
The above patch didn't apply cleanly to 4.4 for me, but the attached one does. I took a look at the git repository for dcron, and this bug has been fixed upstream, but it's taking a long time for a new release to come, as a number of other bugs also need fixing (see #18681). In the meantime, it would be good if this patch could be added to the official package, as it's clearly just a typo that needs fixing.
Comment by Paul Gideon Dann (giddie) - Monday, 21 February 2011, 09:59 GMT
I've created an AUR package called dcron-maint (http://aur.archlinux.org/packages.php?ID=46757) containing this patch and the new patch from https://bugs.archlinux.org/task/18681.

Loading...