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

Marcel Krause 1666875 at bugs.launchpad.net
Thu Jul 23 23:18:46 UTC 2020


The original systemd service file may be restored on system update.
Rather, make an override file /etc/systemd/system/anacron.service.d/on-
ac.conf with

> [Unit]
> ConditionACPower=no

to make systemd always start anacron. However that doesn't help if
anacron will then just flinch, so ensure in /etc/default/anacron:

> ANACRON_RUN_ON_BATTERY_POWER=yes

Hope it helps!

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