systemd anacron.service problem, runs only once after boot

Chris Green cl at isbd.net
Sun Aug 11 08:19:40 UTC 2024


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

    Aug 05 11:06:37 q957 su[2894]: (to news) root on none
    Aug 05 11:06:37 q957 su[2894]: pam_unix(su:session): session opened for user news(uid=9) by (uid=0)
    Aug 05 11:06:38 q957 su[2894]: pam_unix(su:session): session closed for user news
    Aug 05 11:06:38 q957 anacron[696]: Job `cron.daily' terminated
    Aug 05 11:11:04 q957 anacron[696]: Job `cron.weekly' started
    Aug 05 11:11:04 q957 anacron[3252]: Updated timestamp for job `cron.weekly' to 2024-08-05
    Aug 05 11:11:07 q957 anacron[696]: Job `cron.weekly' terminated (mailing output)
    Aug 05 11:11:07 q957 anacron[696]: Normal exit (2 jobs run)
    Aug 05 11:11:07 q957 systemd[1]: anacron.service: Deactivated successfully.
    Aug 05 11:11:07 q957 systemd[1]: anacron.service: Consumed 3.441s CPU time, 1.5M memory peak, 0B memory swap peak.

As you can see anacron.service was run once (just after a roboot) on August
5th at 09:10 and then it never runs again.

It was working perfectly until 22nd July, why is it now deactivating the anacron
service after running it once?


-- 
Chris Green



More information about the ubuntu-users mailing list