[Pkg-systemd-maintainers] anacron: cron.daily jobs not run under systemd if system left up overnight
stapelberg at debian.org
Tue Nov 26 17:46:48 GMT 2013
Laurent Bigonville <bigon at debian.org> writes:
> detect this (ConditionACPower=true). I've added a comment in the
> README.Debian file to explain how to override this.
> +If you are using systemd and want to change this behaviour, you should copy
> +/lib/systemd/system/anacron.service to /etc/systemd/system/anacron.service and
> +remove or comment the "ConditionACPower=true" line.
Note that a better way to override specific statements like this is to
create a file called /etc/systemd/system/anacorn.service.d/on-ac.conf
with the following contents:
Also I’d consider dropping remote-fs.target, unless anacron really needs
it. Apart from that, your patch looks good.
More information about the Pkg-systemd-maintainers