alpine: set current time with chrony

May 20, 2019

The software in this HOWTO:

  1. Alpine Linux 3.8.4, armhf
  2. chrony-3.3-r0

To reset the time on the box to the current time:


    # chronyc makestep
    

Before running this, chrony had the right time ('Ref time:'):


    # chronyc tracking
    Reference ID    : D0719D9D (meanwhile.dreamhost.com)
    Stratum         : 3
    Ref time (UTC)  : Mon May 20 11:08:40 2019
    System time     : 1557773184.000000000 seconds slow of NTP time
    Last offset     : -0.000073435 seconds
    RMS offset      : 0.000131348 seconds
    Frequency       : 1.268 ppm fast
    Residual freq   : +0.000 ppm
    Skew            : 0.020 ppm
    Root delay      : 0.033056431 seconds
    Root dispersion : 0.019526452 seconds
    Update interval : 964.1 seconds
    Leap status     : Normal
    #
      

but the system time was way off:


    # date
    Wed Jan  7 11:25:52 EST 1970
      

For reference, my chrony.conf is the Alpine default:


    # cat /etc/chrony/chrony.conf 
    # default config
    
    pool pool.ntp.org iburst
    initstepslew 10 pool.ntp.org
    driftfile /var/lib/chrony/chrony.drift
    rtcsync
        

Tags: alpine