[Bug 793832] Re: 10.04 LTS Server anacron misconfig

Launchpad Bug Tracker 793832 at bugs.launchpad.net
Mon Nov 5 23:27:36 UTC 2012


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: anacron (Ubuntu)
       Status: New => Confirmed

-- 
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/793832

Title:
  10.04 LTS Server anacron misconfig

Status in “anacron” package in Ubuntu:
  Confirmed

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/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

  # 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.daily/sysklogd and my logs rotated.  So I added:

  echo "ok"

  To the last line of /etc/cron.daily/sysklogd and ran it again, to
  check my changes.

  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://ubuntuforums.org/showthread.php?t=1468187 ), my anacron.conf is in /etc/init.removed and so anacron won't start if you ask it to.  I mv'd the conf

  # mv /etc/init.removed/anacron.conf /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/anacron.conf || ( cd / && run-parts --report
  /etc/cron.daily )

  OR distro come with anacron.conf in correct location OR both

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/anacron/+bug/793832/+subscriptions




More information about the foundations-bugs mailing list