[Bug 382315] Re: cron.daily doesn't execute scheduled scripts
Bill Sumerlin
bill at mmcad.com
Wed May 8 18:58:09 UTC 2013
*** This bug is a duplicate of bug 36816 ***
https://bugs.launchpad.net/bugs/36816
test -x /usr/sbin/anacron is returning a result code of 1 whether
anacron is installed or not.
I am running ubuntu 10.04 in an Amazon EC2 instance from an Ubuntu AMI.
anacron is NOT installed on this system, though test -x seems to think
it is.
So cron.daily is never run...
So I have 2 choices... modify the system script wherever it is, or make
a new entry in crontab for the various scripts installed in cron.daily.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to anacron in Ubuntu.
https://bugs.launchpad.net/bugs/382315
Title:
cron.daily doesn't execute scheduled scripts
Status in “anacron” package in Ubuntu:
Triaged
Status in “anacron” package in Debian:
Unknown
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/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# 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/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# 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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/anacron/+bug/382315/+subscriptions
More information about the foundations-bugs
mailing list