![](https://seccdn.libravatar.org/avatar/77cb4da5f72bc176182dcc33f03a18f3.jpg?s=120&d=mm&r=g)
On 2024-01-14 13:58, Darryl Gregorash wrote:
On 2024-01-14 05:59, Carlos E. R. wrote:
On 2024-01-14 12:10, Darryl Gregorash wrote:
On 2024-01-14 02:02, Felix Miata wrote:
This is totally confusing. Where exactly did you put that line you want to add?
It is not confusing. The pasted text is the direct result of running the command:
systemctl cat mdcheck_start.timer
and it outputs two files, the system one and the override file. The system file is not edited, there is a an override file with a single text line with the "edit". Well, duuh, Carlos. Read closely and you'll see I'm not even talking about that. What I'm asking about is just where did he place the new line in the service file.
It is absolutely clear. It has no section line, so there is a syntax error, which probably systemctl should have caught and warned about.
It should have been placed under the [Timer] title; above or below the existing line should not matter. Try deleting the existing override.conf file, and editing the service file again, this time placing your new line in the proper place.
NO!
That breaks things, specially with updates.
Wrong, wrong, couldn't be more wrong.
Sorry, I thought you had said to delete the service file, while you said to delete the override file. But that one is also wrong. He only needs to run 'systemctl edit mdcheck_start.timer' and edit the file, which will be: OnCalendar=Sat *-*-* 4:00:00 to [Timer] OnCalendar=Sat *-*-* 4:00:00 and save. It is an editor, no need to delete the override file manually. Still, the file would not work as intended, so edit again to: [Timer] OnCalendar= OnCalendar=Sat *-*-* 4:00:00
When you execute "systemctl edit", the original file is left unchanged (which you should have noticed in the output of the systemctl cat command). The modified file is saved as: /etc/systemd/system/<service>.d/override.conf
I know that. ...
The correct method is what Georg Pfuetzenreuter suggested.
Isn't that precisely what I said when I wrote this?
It should have been placed under the [Timer] title; above or below the existing line should not matter.
-- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)