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

Stephen Worthington stephen_agent at jsw.gen.nz
Fri Nov 9 13:57:36 UTC 2018


On Fri, 9 Nov 2018 08:51:41 -0500, you wrote:

>Now that we've seen the anacron daily changed successfully to 7:30am.  I 
>wanted to see exactly how to accomplish this correctly and document it.
>
>So the plan is to change from 7:30am to 5:30am and see if one set of 
>commands will do this.
>
>Here is the console output with the commands:
>
>jim at mythbuntu:~$ *sudo systemctl edit anacron.timer* # all I changed was 
>the 7 to a 5, and the description.
>jim at mythbuntu:~$ *sudo systemctl daemon-reload*
>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 05:30, instead of midnight, the default 
>for Ubunt
>
>[Timer]
>OnCalendar=
>OnCalendar=05:30
>RandomizedDelaySec=0s
>Persistent=true
>jim at mythbuntu:~$ sudo systemctl status anacron.timer
>? anacron.timer - Trigger anacron at 05:30, instead of midnight, the 
>default for
>    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 08:44:08 EST; 16s ago
>   Trigger: Sat 2018-11-10 05:30:00 EST; 20h left
>
>Nov 09 08:44:08 mythbuntu systemd[1]: Stopping Trigger anacron at 05:30, 
>instead
>Nov 09 08:44:08 mythbuntu systemd[1]: Started Trigger anacron at 05:30, 
>instead
>jim at mythbuntu:~$
>
>Do now we wait and see what happens tomorrow.  I will not reboot at this 
>time.
>
>Jim A
>

That looks good.  The status is showing that anacron.timer will
trigger at 05:30.  But we really will have to wait and see if it
actually happens.  For debugging purposes, you can change the time to
something that is only minutes away, if you do not want to wait that
long.


More information about the mythtv-users mailing list