"log2ram-daily.timer" 及其 "override.conf" 文件之间的问题

Problem between a "log2ram-daily.timer" and its "override.conf" file

我在“log2ram-daily.timer”和它的“override.conf”文件之间遇到问题,我不确定是因为语法不兼容还是其他原因。这就是我正在做的:

Raspian on Pi3B+

“log2ram-daily.timer”包含:

[Unit]
Description=Daily Log2Ram writing activities

[Timer]
OnCalendar=*-*-* 23:55:00
Persistent=true

[Install]
WantedBy=timers.target

其“override.conf”文件包含:

[Timer]
OnCalendar=Mon *-*-* 23:50:00

但是结果不是我想要的...

当我“systemctl status log2ram-daily.timer”时,触发指示

Trigger: Fri 2021-07-30 23:55:00 CEST; 19h left

与 override.conf 中的预期不符...

在我的故障排除中,我修改了文件“log2ram-daily.timer”,添加了“Mon”:

[Unit]
Description=Daily Log2Ram writing activities

[Timer]
OnCalendar=Mon *-*-* 23:55:00
Persistent=true

[Install]
WantedBy=timers.target

还有...

systemctl status log2ram-daily.timer
Trigger: Mon 2021-08-02 23:50:00 CEST; 3 days left

override.conf 现已加载完毕!但为什么?语法不兼容?!

我找到了解决方法,在“override.conf”之前添加一个空指令,否则会重复。

[Timer]
OnCalendar=
OnCalendar=Mon *-*-* 23:50:00