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

On 2020-02-25, Richard Kettlewell wrote:

> Adam Funk  writes:
>> On 2020-02-25, Richard Kettlewell wrote:
>>> Adam Funk  writes:
>>>> On 2020-02-24, Richard Kettlewell wrote:
>>>>> Adam Funk  writes:
>>>>>> 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?
>>>
>>> No, the link needs to point to the new file.
>>
>> So where do I put the new/customized version of the regular file?
>
> From the instructions I pointed you at:
>
>        There are two methods of overriding vendor settings in unit
>        files: copying the unit file from /lib/systemd/system to
>               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>        /etc/systemd/system and modifying the chosen settings.
>        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>        Alternatively, one can create a directory named unit.d/ within

It's clearly obvious to you how this works, so I appreciate your
patience.

1. copy /etc/systemd/system/anacron.timer to /etc/systemd/system
2. edit /etc/systemd/system/anacron.timer to "05..23:30"
3. delete the symlink from
/etc/systemd/system/timers.target.wants/anacron.timer
          to /lib/systemd/system/anacron.timer
4. replace that symlink with one to /etc/systemd/system/anacron.timer

Does that sound right?  It seems very strange to me to have to copy a
file into a higher bit of /etc/systemd/ then symlink it from further
down the tree.


--
There's no money in poetry, but there's no poetry in
money either.                       ---Robert Graves

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