TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: RICHARD KETTLEWELL
from: ADAM FUNK
date: 2020-02-24 13:54:00
subject: Re: Controlling the time

On 2020-02-24, Richard Kettlewell wrote:

> Adam Funk  writes:
>> On 2020-02-20, Richard Kettlewell wrote:
>>> You stopped reading too early:
>> ...
>>> Start with ‘man systemd.timer’ for the syntax & meaning of the timer
>>> file, and look for ‘Overriding vendor settings’ in ‘man
systemd.unit’
>>> for how to modify its behavior.
>>
>> Thanks --- I think I'm getting closer, but not successful yet.  I
>> found a symlink from
>> /etc/systemd/system/timers.target.wants/anacron.timer to
>> /lib/systemd/system/anacron.timer, deleted it, copied the linked file
>                                      ^^^^^^^^^^
>
> I have no idea why you would do that.

Some stuff in the documentation led to believe that customized files
should go straight in etc --- should I restore the symlink and edit
the file in /lib/systemd/...?


>> into the etc location, and edited the relevant-looking line as
>> follows:
>>
>> #OnCalendar=*-*-* 07..23:30
>> OnCalendar=*-*-* 05..23:30
>>
>> Then I used touch to set the timestamp on
>> /var/spool/anacron/cron.daily back a few hours.
>>
>> And cron.daily got run at 07:30 again this morning.  Any more
>> suggestions?  I'd be grateful.
>
> You will probably need to run ‘systemctl daemon-reload’, but you’ll
need
> to undo the random file deletion above first.

Good point (I know I restarted cron and anacron, but forgot to mention
that above).


--
It takes a thousand men to invent a telegraph, or a steam engine, or a
phonograph, or a telephone or any other important thing --- and the
last man gets the credit and we forget the others.       ---Mark Twain

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.