Re: Question about chrony use in a system without RTC battery
chrony-users-Cohe+2zZ/ftmR6Xm/[email protected]
| Newsgroups | gmane.comp.time.chrony.user |
|---|---|
| Organization | PE1CHL |
| Message-ID | <[email protected]> |
I would say you can handle that yourself by running a startup job that runs before your logger application, retrieves the last time of a log entry, compares that to the current clock, and when the clock is lower it sets the time to that latest log entry time (maybe +1). Then in case there is no internet connection, at least your time won't jump back. Rob On 3/9/22 15:36, Kris van Rens wrote: > My main goal is to prevent the system time to jump back. My > application data recording mechanism assumes time to increase > monotonously, and a jump back in time will prevent my application from > writing any data. In a case of a temporary poweroff + RTC value loss, > I'd rather have an erroneous time indication that disregards the > outage time, but at least does not jump back in time. In any normal > situation NTP is always enabled and the internet connection is stable, > but power outages do happen. -- To unsubscribe email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org with "unsubscribe" in the subject. For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org with "help" in the subject. Trouble? Email [email protected]