[Pkg-systemd-maintainers] anacron: cron.daily jobs not run under systemd if system left up overnight

Laurent Bigonville bigon at debian.org
Tue Nov 26 09:56:04 GMT 2013


Hi,

This is happening probably because the service is still considered as
"active" by systemd even when anacron has exited:

$ systemctl status anacron
anacron.service - LSB: Run anacron jobs
   Loaded: loaded (/etc/init.d/anacron)
   Active: active (exited) since mar 2013-11-26 10:36:19 CET; 8min ago
  Process: 13646 ExecStart=/etc/init.d/anacron start (code=exited, status=0/SUCCESS)

IMHO the proper way to fix this is to create anacron.service file with
Type=oneshot

my 2ยข

Laurent Bigonville




More information about the Pkg-systemd-maintainers mailing list