10.04 LTS Server anacron misconfig
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
anacron (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: anacron
I run VPSs with Ubuntu 10.04 LTS and have done for some months, and logs do not rotate. It seems this is an issue with anacron not running since the config file is misplaced.
/etc/crontab looks like this:
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/
# m h dom mon dow user command
22 * * * * root cd / && run-parts --report /etc/cron.hourly
37 0 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
8 2 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
0 2 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
I ran /etc/cron.
echo "ok"
To the last line of /etc/cron.
Then, I ran (from /etc/crontab):
# test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
and nothing happened. This is because it merely tests to see if anacron is executable; but it doesn't test that it is *running*.
Like a lot of people out there in internetland (one example: http://
# mv /etc/init.
and started anacron, apparently for the first time. It just so happens that I have a fresh 10.04 install on a VPS (from earlier today) and anacron is misconfig'd there too:
# start anacron
start: Unknown job: anacron
Suggest that line in /etc/crontab should be :
root test -f /etc/init/
OR distro come with anacron.conf in correct location OR both
tags: | added: lucid |
Status changed to 'Confirmed' because the bug affects multiple users.