[mythtv-users] anacron time change after upgrade to Ubuntu 18.04

Jim Abernathy jfabernathy at gmail.com
Fri Nov 9 12:43:41 UTC 2018


On 11/9/18 6:36 AM, Stephen Worthington wrote:
> On Fri, 9 Nov 2018 05:59:48 -0500, you wrote:
>
>> # Warning: anacron.timer changed on disk, the version systemd has loaded
>> is outdated.
> That is a problem - but I am not sure if it is the cause of the timer
> still being triggered every hour.  But we do need to get rid of it.
> When I ran "systemctl cat anacron.timer" on my system just now, I also
> got the same warning, and I know I have not changed my override file,
> but its timestamp had changed to 10-Nov-2018 00:22.  For me, this
> fixed it:
>
> sudo systemctl daemon-reload
> sudo systemctl restart anacron.timer
>
> and then we need to see what that has done:
>
> sudo systemctl cat anacron.timer
> sudo systemctl status anacron.timer
> ________________________________________

Good news, My DB maintenance ran at 7:35am as I wanted and like it did 
under Ubuntu 16.04.

I'll now do the commands above and show you the results.

jim at mythbuntu:~$ sudo systemctl daemon-reload
[sudo] password for jim:
jim at mythbuntu:~$ sudo systemctl restart anacron.timer
jim at mythbuntu:~$ sudo systemctl cat anacron.timer
# /lib/systemd/system/anacron.timer
[Unit]
Description=Trigger anacron every hour

[Timer]
OnCalendar=hourly
RandomizedDelaySec=5m
Persistent=true

[Install]
WantedBy=timers.target

# /etc/systemd/system/anacron.timer.d/override.conf
[Unit]
Description=Trigger anacron at 07:30, as happened before the Ubuntu 
18.04 upgrad

[Timer]
OnCalendar=
OnCalendar=07:30
RandomizedDelaySec=0s
Persistent=true
jim at mythbuntu:~$ sudo systemctl status anacron.timer
● anacron.timer - Trigger anacron at 07:30, as happened before the 
Ubuntu 18.04
    Loaded: loaded (/lib/systemd/system/anacron.timer; enabled; vendor 
preset: en
   Drop-In: /etc/systemd/system/anacron.timer.d
            └─override.conf
    Active: active (waiting) since Fri 2018-11-09 07:42:05 EST; 32s ago
   Trigger: Sat 2018-11-10 07:30:00 EST; 23h left

Nov 09 07:42:05 mythbuntu systemd[1]: Stopped Trigger anacron at 07:30, 
as happe
Nov 09 07:42:05 mythbuntu systemd[1]: Stopping Trigger anacron at 07:30, 
as happ
Nov 09 07:42:05 mythbuntu systemd[1]: Started Trigger anacron at 07:30, 
as happe
jim at mythbuntu:~$

Jim A




More information about the mythtv-users mailing list