Solved leapsecond experied what to do?

I googled this got this page. https://forums.freebsd.org/threads/leapseconds-file-expired.56645/

while working it out by following what they did to fix it, I am not getting the same results. I added the two items in the rc.conf
Code:
ntp_leapfile_fetch_verbose="YES"
ntp_leapfile_sources="ftp://tycho.usno.navy.mil/pub/ntp/leap-seconds.list"
and still seeing this and that message leapsecond file expired.
Code:
[userx@FreeBSD ~]$ sudo service ntpd onefetch
ntp_src_leapfile version is 3676924800 expires 3786480000
ntp_db_leapfile version is 3676924800 expires 3802291200
not replacing /var/db/ntpd.leap-seconds.list with /etc/ntp/leap-seconds
 
Contact NIST if your leapsecond is experied experienced for more than one second... ?

3 676 924 800 is less than 3 786 480 000 so of course it has not expired yet. That's a notification, not an error
 
I guess it's solved, I;ve been seeing that for so long, I thought I'd investage it, maybe I need to stop reading messages on boot screen .. :D
 
This setting worked /etc/rc.conf:

Code:
ntp_src_leapfile="/etc/ntp/leap-seconds"
ntp_db_leapfile="/var/db/ntpd.leap-seconds.list"
ntp_leapfile_sources="https://www.ietf.org/timezones/data/leap-seconds.list"
ntp_leapfile_fetch_opts="-mq"
ntp_leapfile_expiry_days=30
ntp_leapfile_fetch_verbose="NO"
 
I would Prefer not to OverWrite the PreDefined Variable ${ntp_leapfile_sources}, but to Complement It. This is just a Fragment of My «/etc/rc.conf.local» (or «/etc/rc.conf»), Tested on IPv4-Only and IPv6-Only VPSes:
Bash:
#──────────────────────────────────────────────────────────────────────────────────────────────────#
# Creates a Simple Match-Pattern (Mask) from a given String.
# This Patterns can be used for Parameter Expansions (#/##/%/%%) and Case/esaC Command in SH Scripts.
# UsAge:
# AnyCasePattern <InirialString>
# For Example, «AnyCasePattern "Some <Used> Parameter."»
# Will ReTurn String: «[Ss][Oo][Mm][Ee][[:space:]][<][Uu][Ss][Ee][Dd][>][[:space:]][Pp][Aa][Rr][Aa][Mm][Ee][Tt][Ee][Rr][.]», which can be Applied in Case/#/% Constructions of SH.
# AnyCasePattern Works on Pure SH: avoids using External Utilities such as IConv, TR and SEd.
# AnyCasePattern Can Be easily Expanded for any National Symbols Support.
AnyCasePattern()
 {
  local H T="${*}" R    # Header, Tail, Result.
  if [ -n "${T}" ]
   then
    while [ -n "${T}" ]
     do
      H="${T%"${T#?}"}"
      T="${T#?}"
      case "${H}" in    # Static Case Operator Operates about 4–6 Times Faster, than For-Loop; ≈2–3 Times Faster, than For+Case (For This Particular Case). Tested on Intel® Atom™/Xeon® i386/AMD64.
       [Aa]) H="Aa";;
       [Bb]) H="Bb";;
       [Cc]) H="Cc";;
       [Dd]) H="Dd";;
       [Ee]) H="Ee";;
       [Ff]) H="Ff";;
       [Gg]) H="Gg";;
       [Hh]) H="Hh";;
       [Ii]) H="Ii";;
       [Jj]) H="Jj";;
       [Kk]) H="Kk";;
       [Ll]) H="Ll";;
       [Mm]) H="Mm";;
       [Nn]) H="Nn";;
       [Oo]) H="Oo";;
       [Pp]) H="Pp";;
       [Qq]) H="Qq";;
       [Rr]) H="Rr";;
       [Ss]) H="Ss";;
       [Tt]) H="Tt";;
       [Uu]) H="Uu";;
       [Vv]) H="Vv";;
       [Ww]) H="Ww";;
       [Xx]) H="Xx";;
       [Yy]) H="Yy";;
       [Zz]) H="Zz";;
       [[:space:]]) H="[:space:]";;
      esac
      R="${R}[${H}]"
     done
    printf "%s" "${R}"
    return "0"
   else
    return "1"
  fi
 }
#══════════════════════════════════════════════════════════════════════════════════════════════════#

# URLHost ExtrActs Full HostName form the URL.
# UsAge:
# URLHost "<Long URL>"
# For Example, «URLHost "HTTP://StupidUser:Remember@Data.IANA.Org/time-zones/data/leap-seconds.list?Date=ToDay#3692217600"»
# Will ReTurn String: «Data.IANA.Org»
# Multiple URLs will be SingleSpace-Separated. No External Utilities (in ${PATH}) Required.
URLHost()
 {
  local H R
  for H in "${@}"
   {
    H="${H#*"//"}"    # ReMove Scheme/Protocol Part;
    H="${H%%"/"*}"    # ReMove Host Path and Parameters;
    R="${R}${R:+" "}${H#*"@"}"    # ReMove LogIn:PassWord Part.
   }
  printf "%s" "${R}"
 }
#══════════════════════════════════════════════════════════════════════════════════════════════════#

Bash:
  if [ -n "${name}" -a "${name%[Nn][Tt][Pp][Dd]*}" != "${name}" ]    # Execute Next ↓ «HardWork» on NTPD or NTPDate Start/Stop Only.
   then    # Configuration Files «/etc/rc.conf» and «/etc/rc.conf.local» are Included by Every Deamon Script on Start/Stop/ReStart/ReLoad/… These Actions ↓ may take Some Time During Boot Process, so They should be performed only when running Time Daemons.
    Alt_NTP_LeapFile_Sources="${Alt_NTP_LeapFile_Sources}${Alt_NTP_LeapFile_Sources:+" "}HTTPS://HPIERS.OBSPM.Fr/iers/bul/bulc/ntp/leap-seconds.list"    # Paris Observatory IERS Centers …from Quasars to our changing Earth. Works Faster in Most Cases (Moscow, Amsterdam, …), SupPorts IPv4 Only (Not AvailAble on IPv6-Only Hosts).
    Alt_NTP_LeapFile_Sources="${Alt_NTP_LeapFile_Sources}${Alt_NTP_LeapFile_Sources:+" "}HTTPS://Data.IANA.Org/time-zones/data/leap-seconds.list"    # The Global Coordination of the DNS Root, IP Addressing, and Other InterNet Protocol Resources is Performed as the InterNet Assigned Numbers Authority (IANA) Functions. SupPorts IPv4 and IPv6.
    for Alt_NTP_LeapFile_Source in ${Alt_NTP_LeapFile_Sources}
     {
      Alt_NTP_LeapFile_Source_Pattern="$(AnyCasePattern "$(URLHost "${Alt_NTP_LeapFile_Source}")")"
      [ "${ntp_leapfile_sources%${Alt_NTP_LeapFile_Source_Pattern}*}" == "${ntp_leapfile_sources}" ] && ntp_leapfile_sources="${ntp_leapfile_sources}${ntp_leapfile_sources:+" "}${Alt_NTP_LeapFile_Source}"
     }
    unset Alt_NTP_LeapFile_Source Alt_NTP_LeapFile_Sources Alt_NTP_LeapFile_Source_Pattern
  fi
  ntpd_enable="Yes"    # Дэмон СинХронизации СисТемнОго Времени.
  ntpd_nice="-20 rtprio 0"    # Running NTPD with Maximum «Real-Time Priority» and Minimum «Politeness» («Compliance», «Nice») to Other Processes in the System. Because Time is the Most ValuAble and IrRePlaceAble Resource, and It should be taken into Account especially Carefully.
  ntpd_flags="--authreq --bcastsync"    # Всегда Требовать КриптоГрафическую Аутентификацию, СинхронизироватьСя с ШирокоВещательными Серверами, Первичная (при Запуске Дэмона) Коррекция Времени может находиться в Широком Диапазоне.
  ntpd_sync_on_start="Yes"        # ПриХодитСя ИсПользовать Сей ПараМетр, ВзаМесто «--panicgate» по Причине Кривости ОбРаБотки ПараМетров СкрипТом ЗаПуска «/etc/rc.d/ntpd».
I understand that This ↑ is Cumbersome, but it is Universal…
P.S. I Used «Code=bash» Tags because of «FoRums.FreeBSD.Org» does not ColoRise «Code=sh» Tags. But All This is Pure SH.
 
Back
Top