Re: [chrony-users] Delaying postfix until chronyd gets the time |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Delaying postfix until chronyd gets the time
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Fri, 21 Apr 2017 12:21:32 +0200
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=mlichvar@xxxxxxxxxx
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com C9B728806
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C9B728806
On Fri, Apr 21, 2017 at 05:59:12AM -0400, Robert Moskowitz wrote:
> I was looking at the man for chronyd, and saw that the man for 2.1.1 says it
> uses the drift file:
>
> If chronyd doesn't support the RTC on your computer or there
> is
> no RTC installed, the system clock will be set with this
> option
> forward to the time of the last modification of the drift
> file
> (specified by the driftfile directive) to restore the
> system
> time at which chronyd was previously stopped.
You are right. The difference between 2.1.1 and 2.2 actually is that
2.1.1 uses the driftfile only when the RTC is missing. If there is an
RTC, but it is in the past (e.g. it has no battery to keep the time
when the system was powered off), the driftfile will not be used to
restore the system time.
However, you could force chronyd to ignore the RTC by setting
rtcdevice to a nonexistent device and always use the driftfile, e.g.
rtcdevice /dev/doesnotexist
> What does the rtcsync in chronyd.conf do?
It tells the kernel to periodically set the RTC to the system time.
With no battery, that would probably be useful only for reboots.
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.