[Bug 1666875] Re: anacron does not execute cron.daily on start or restart

Cliff Carson 1666875 at bugs.launchpad.net
Wed Oct 31 13:06:49 UTC 2018


Removing the ConditionACPower didn't help.  Still believe that systemd
starting the anacron job is the only way to get logrotate to run.  If
the anacron.service runs the only thing it appears to do is to run
0anacron which runs anacron -u.  This only sets the date in
/var/spool/anacron/cron.daily to the current date.  systemd will start
anacron after the first boot of the day and the system has AC power.
Rebooting the system after the first boot fail to have systemd start
anacron.  Don't yet understand that.  Going to run logrotate manually
for now.

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

Title:
  anacron does not execute cron.daily on start or restart

Status in anacron package in Ubuntu:
  Confirmed

Bug description:
  I have an Ubuntu 16.10, setup with a cron.daily script. If I run the
  script manually and with run-parts it works. Also, if I left the
  computer on, then the script is run correctly.

  However, if I turn off the computer and turn it on after the set
  anacron executing time (by default 7:30) then the cron.daily is never
  executed.

  System info:

  $ lsb_release -rd
  Description:	Ubuntu 16.10
  Release:	16.10

  $ apt-cache policy anacron
  anacron:
    Installed: 2.3-23
    Candidate: 2.3-23
    Version table:
   *** 2.3-23 500
          500 http://br.archive.ubuntu.com/ubuntu yakkety/main amd64 Packages
          100 /var/lib/dpkg/status

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



More information about the foundations-bugs mailing list