TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ADAM FUNK
from: MARTIN GREGORIE
date: 2020-02-24 14:36:00
subject: Re: Controlling the time

On Mon, 24 Feb 2020 13:54:29 +0000, Adam Funk wrote:

> 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).
There's a fairly decent description of systemd, how it works and is
configured here:

https://www.freedesktop.org/wiki/Software/systemd/

IIRC it has instructions for changing configured values: it describes a
way of storing changes to standard settings so that future system updates
won't clobber your site-specific change.


--
Martin    | martin at
Gregorie  | gregorie dot org

--- 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™.