TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ADAM FUNK
from: JOE BEANFISH
date: 2020-02-25 14:57:00
subject: Re: Controlling the time

On Tue, 25 Feb 2020 09:40:16 +0000, Adam Funk wrote:

> On 2020-02-24, Richard Kettlewell wrote:
>
>> Adam Funk  writes:
>>> 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/...?
>>
>> The symlinks needs to still be there but point to the new file.
>
> So restore the symlinnk from
> /etc/systemd/system/timers.target.wants/anacron.timer to
> /lib/systemd/system/anacron.timer & edit the latter (regular) file?
>
> (It just seems weird to me to edit something in /lib rather than in
> /etc!)
>
> Thanks.

The "files" in etc are just symlinks to the files in lib. Systemd
creates/deletes the links when you do systemctl enable/disable.
Similar to how traditional init used init.d and rc* directories.
You can edit in either place to the same effect, as long as you
don't break the link.

One thing about editing those files tho. Chances are your changes
will get overwritten if/when you update the system package
containing them. So document what you did so you can do it again.

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