![](https://seccdn.libravatar.org/avatar/5e70f769092f3372f14b4f2df58a17e1.jpg?s=120&d=mm&r=g)
On 2024-01-14 12:15, Carlos E. R. wrote:
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. This is exactly what I spoke about in the next part below:
It should have been placed under the [Timer] title; above or below the existing line should not matter.
But I wasn't speaking about what was wrong here, I was saying it was quite unclear where he had put the new line in the first place. This is why I asked where exactly he put the line, right after I said what he wrote was rather confusing.
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 I have usually found it best to revert the system to its previous state before making further edits to the configuration. This prevents one from compounding the error by changing an erroneous line or phrase into something that is even worse. I just discovered the systemctl way to achieve this: systemctl revert <service>
[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 I'm not sure of the rationale for this. The first line clears out all
I bet it just deletes the override file (oh, and surely restarts the service as well). Note also that both the edit and revert commands cause the service file to be reloaded before systemctl exits. previous timers, which will be accomplished by simply restarting the service.