Am 2018-11-28 09:26, schrieb Stefan Seyfried:
Am 27.11.18 um 15:27 schrieb Cristian Rodríguez:
Everyday is "daily" or "*-*-* 00:00:00", but you do not want this.. you want any or a combination of OnActiveSec=, OnBootSec=, OnStartupSec=, OnUnitActiveSec=, OnUnitInactiveSec=. You most likely want to trigger when 24 hours passed for the computer since the last time it was executed.. and not for the wall clock, which is subject to time adjustments by NTP, DST, leap seconds..etc..
Does systemd.timer run on Local time? REALLY?
NTP, Leap seconds etc. will not make "00:00:00" not happen. SNTP might, this is why one should not use it. Leap second will create either 23:59:60 additional second, or remove 23:59:59 second, so "*-*-* 29:59:59" might be a bad idea with systemd.timer (but it will work just fine with cron if I read the code correctly, which will execute it just one second "too late").
So if using a fixed time with sytemd.timer does not work, then the use of systemd.timer should be strongly discouraged.
I will a fixed time. I want every day, every hour past five minutes after hour. And it is working with OnCalendar=*-*-* *:05:00 But my question was: Why must i leave the "*" for days from above and why i can not insert a * for daily too. Like OnCalendar=* *-*-* *:05:00. And i ask if this is a bug of systemd. -- Regards Eric -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org