<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>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.</p>
<p>So the plan is to change from 7:30am to 5:30am and see if one set
of commands will do this.</p>
<p>Here is the console output with the commands:</p>
<p>jim@mythbuntu:~$ <b>sudo systemctl edit anacron.timer</b> # all
I changed was the 7 to a 5, and the description.<br>
jim@mythbuntu:~$ <b>sudo systemctl daemon-reload</b><br>
jim@mythbuntu:~$ <b>sudo systemctl restart anacron.timer</b><br>
jim@mythbuntu:~$ <b>sudo systemctl cat anacron.timer</b><br>
# /lib/systemd/system/anacron.timer<br>
[Unit]<br>
Description=Trigger anacron every hour<br>
<br>
[Timer]<br>
OnCalendar=hourly<br>
RandomizedDelaySec=5m<br>
Persistent=true<br>
<br>
[Install]<br>
WantedBy=timers.target<br>
<br>
# /etc/systemd/system/anacron.timer.d/override.conf<br>
[Unit]<br>
Description=Trigger anacron at 05:30, instead of midnight, the
default for Ubunt<br>
<br>
[Timer]<br>
OnCalendar=<br>
OnCalendar=05:30<br>
RandomizedDelaySec=0s<br>
Persistent=true<br>
jim@mythbuntu:~$ sudo systemctl status anacron.timer <br>
● anacron.timer - Trigger anacron at 05:30, instead of midnight,
the default for<br>
Loaded: loaded (/lib/systemd/system/anacron.timer; enabled;
vendor preset: en<br>
Drop-In: /etc/systemd/system/anacron.timer.d<br>
└─override.conf<br>
Active: active (waiting) since Fri 2018-11-09 08:44:08 EST; 16s
ago<br>
Trigger: Sat 2018-11-10 05:30:00 EST; 20h left<br>
<br>
Nov 09 08:44:08 mythbuntu systemd[1]: Stopping Trigger anacron at
05:30, instead<br>
Nov 09 08:44:08 mythbuntu systemd[1]: Started Trigger anacron at
05:30, instead <br>
jim@mythbuntu:~$ <br>
</p>
<p>Do now we wait and see what happens tomorrow. I will not reboot
at this time.</p>
<p>Jim A</p>
<p><br>
</p>
</body>
</html>