cron.daily doesn't execute scheduled scripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
anacron (Debian) |
Unknown
|
Unknown
|
|||
anacron (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
In my system (Hardy) the cron.daily scripts (etc/cron.daily/*) seems not to be daily executed.
This is my /etc/crontab
SHELL=/bin/sh
PATH=/usr/
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
This is my /etc/anacrontab
SHELL=/bin/sh
PATH=/usr/
# These replace cron's entries
1 5 cron.daily nice run-parts --report /etc/cron.daily
7 10 cron.weekly nice run-parts --report /etc/cron.weekly
@monthly 15 cron.monthly nice run-parts --report /etc/cron.monthly
In /var/log/syslog I correctly see
Apr 30 08:37:22 ramses anacron[6700]: Job `cron.daily' started
Apr 30 08:37:22 ramses anacron[7737]: Updated timestamp for job `cron.daily' to 2009-04-30
but nothing seems having been executed.
If I manually launch
run-parts --report /etc/cron.daily
the scripts are correctly executed.
Changed in anacron (Ubuntu): | |
status: | New → Confirmed |
Some days ago I have started my PC and syslog sayd:
May 14 08:40:56 ramses anacron[6696]: Anacron 2.3 started on 2009-05-14
May 14 08:40:56 ramses anacron[6696]: Will run job `cron.daily' in 5 min.
...
...
May 14 08:45:56 ramses anacron[6696]: Job `cron.daily' started
May 14 08:45:56 ramses anacron[7302]: Updated timestamp for job `cron.daily' to 2009-05-14
but then it seems that no scripts, in /etc/cron.daily, were executed (I also made a script that do a simple touch of a file in a directory but nor this was executed). Moreover my anacrontab has a period of 1 day and my PC was off for about 3-4 days, so the jobs weren't executed for more than 1 day (that it seems the period after the which anacron starts the job) and they should have been run. anacron/ cron.daily file I could see the timestamp updated to 20090514 so anacron assumed that the jobs were executed but this wasn't.
If I watched /var/spool/