B.1 CHRONY - Inform other applications about timewarps

If chrony notes that the clock is significantly away from the current time, it corrects the time in one great step and starts scripts to inform other applications about this timewarp. For example to inform imond about a timewarp, chrony does the following:

  1. include scripts into the archive

    Chrony includes two files to the archive:

    start_imond  yes  etc/chrony.d/timewarp.sh mode=555 flags=sh
    start_imond  yes  etc/chrony.d/timewarp100.imond mode=555 flags=sh
    

    timewarp.sh starts all scripts in the same folder which names are timewarp<3 numbers>.<name>.

  2. provide script

    chrony includes the following script into the archive:

    # inform imond about time warp
    imond-stat "adjust-time $timewarp 1"
    

    Hence imond will be informed about the timewarp and is able to correct it's internal timebase.



© 2001-2019 The fli4l-Team - 28 April 2019