Oh fuck. I’ll use this from now on. Except for if I won’t use it next week. Then I’ll forget about it because my memory is a damn sieve.
Just take the next step and make a text file you dump all these commands into and then forget about in a week. When you randomly stumble across it years from now you’ll be able to say “wow, I could have used this 10 months ago if I remembered it existed!”
Systemd ignored my calendar override for the builtin raid scanner, so every week my server would chug to a halt to scan the entire array.
In true systemd fashion, the documentation could not explain this behavior, so I had to make a full copy override instead of a merge override because reasons.
Did setting OnCalendar to the empty string not work? https://unix.stackexchange.com/a/479745
Thank you for this, I am dumb when it comes to config merge rules because I’ve screwed up ALSA the same way
Okay this is cool and all, but why would systemd have a calendar?
(also how do i do this)
As others have said on this thread, it’s because systemd has fairly advanced timer system that basically requires implementing a calendar.
To do it, the command is in the screenshot
systemd-analyze calendar "Tue *-12-25"
.