]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r335575, r335786-r335787
authorian <ian@FreeBSD.org>
Wed, 4 Jul 2018 14:01:56 +0000 (14:01 +0000)
committerian <ian@FreeBSD.org>
Wed, 4 Jul 2018 14:01:56 +0000 (14:01 +0000)
commit3a2474417e73f5ff0312affa449eb612d88159f3
tree582bb5f177808dc2cb5ed38fcd8fc75f7cf250a9
parent83bb081e81887495a8b415ecaf27b211101ef3da
MFC r335575, r335786-r335787

r335575:
Use 'mv -f' in rc.d/ntpd to avoid spuriously halting the boot.

The final 'mv' to install a fetched leap-list file can fail (due to a
readonly fs, or schg flags, for example), and that leads to mv(1)
prompting the user, stopping the boot process.  Instead, use mv -f
to supress the prompting, and if verbose mode is on, emit a warning
that the existing file cannot be replaced.

PR: 219255

r335786:
Rename variable ntp_tmp_leapfile to have a leading underbar, to distinguish
it from variables with similar names which are set in rc.conf.  This will
make more sense as the script grows more similar-name local variables in
some upcoming changes.

r335787:
When being verbose about various leapfile versions, also mention expiration.

The expiration date is actually more of a version number than the version
date, because expiration changes twice a year, whereas the version only
changes when actual leap second events occur (except in USNO leapfiles,
which inappropriately bump the version with every expiration date change).
etc/rc.d/ntpd