systemd anacron.service problem, runs only once after boot

Chris Green cl at isbd.net
Mon Aug 12 07:39:55 UTC 2024


On Sun, Aug 11, 2024 at 08:19:45AM -0400, Sam Varshavchik wrote:
> Chris Green writes:
> 
> > My cron.daily tasks (the executables in /etc/cron.daily) are only ever
> > getting run once after a system boot.  Up until July 22nd (I'm not
> > sure if that date is significant) they all ran, as designed, every day,
> >
> > What I see from systemctl is:-
> >
> >     chris at q957$ date
> >     Sun Aug 11 09:10:34 AM BST 2024
> >     chris at q957$ systemctl status anacron.service
> >     ○ anacron.service - Run anacron jobs
> >          Loaded: loaded (/usr/lib/systemd/system/anacron.service; enabled;  
> > preset: enabled)
> >          Active: inactive (dead) since Mon 2024-08-05 11:11:07 BST; 5 days  
> > ago
> >        Duration: 10min 3.217s
> >            Docs: man:anacron
> >                  man:anacrontab
> >        Main PID: 696 (code=exited, status=0/SUCCESS)
> >             CPU: 3.441s
> 
> Comparing this to what I show, systemctl also shows one more data point for  
> me:
> 
> TriggeredBy: ● anacron.timer
> 
> root at ripper:~# locate anacron.timer
> /etc/systemd/system/timers.target.wants/anacron.timer
> /usr/lib/systemd/system/anacron.timer
> /var/lib/systemd/deb-systemd-helper-enabled/anacron.timer.dsh-also
> /var/lib/systemd/deb-systemd-helper-enabled/timers.target.wants/anacron.timer
> /var/lib/systemd/timers/stamp-anacron.timer
> 
> 
> /lib/systemd/system/anacron.timer is installed by the anacron package. Check  
> that it's installed, if so: "systemctl enable anacron.timer".
> 
> 
Yes, that was it! :-)  anacron.timer had got disabled for some reason.
Thank you.

-- 
Chris Green



More information about the ubuntu-users mailing list