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

On 2020-02-25, Joe Beanfish wrote:

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

I'm used to the upgrade process (on Debian-based systems) warning me
that a config file has changed upstream & giving me the options: keep
my own file (with a copy of the new upstream file beside it, so I can
deal with it later); install the new file (and rename my own file, so
I can deal with it later); or show the diff & repeat the options.

Are you telling me systemd is going to break that?


--
Now you're climbing to the top of the company ladder
Hope it doesn't take too long
Can't you see there'll come a day when it won't matter?
Come a day when you'll be gone                ---Boston

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