Carlos E. R. wrote:
On 2018-07-07 13:51, Per Jessen wrote:
Carlos E. R. wrote:
How? The timer says:
[Unit] Description=Daily rotation of log files Documentation=man:logrotate(8) man:logrotate.conf(5)
[Timer] OnCalendar=daily AccuracySec=12h Persistent=true
[Install] WantedBy=timers.target
It doesn't say there that it is going to run once per day at 00,
It does actually say that above too, but you have to know the syntax.
"OnCalendar=daily" means "daily at 00:00"
man systemd.time
Ah.
You also have to know what man page. I thought it would be "timer"
It is, and "man systemd.timer" then refers to systemd.time for the calendar format. :-)
What happens when the computer is not powered at 00:00, when does it run?
"man systemd.timer" - look for AccuracySec
The manual says "Note that timers do not necessarily expire at the precise time configured with these settings, as they are subject to the AccuracySec= setting below." Hum. So it may run 12 hours later - but if I power the computer at 13 hours, it will not run.
Yup, there you have it. -- Per Jessen, Zürich (22.9°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org