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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1666875

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

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to