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

Jim Abernathy jfabernathy at gmail.com
Fri Nov 9 13:51:41 UTC 2018


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20181109/8a7f0c59/attachment.html>


More information about the mythtv-users mailing list