sonic-buildimage/files/image_config/ntp
SuvarnaMeenakshi 7b4b1245bd [ntp]: Add "tinker panic 0" in ntp.conf to avoid ntpd from panic (#4263)
- What I did
Add configuration to avoid ntpd from panic and exit if the drift between new time and current system time is large.

- How I did it
Added "tinker panic 0" in ntp.conf file.

- How to verify it
[this assumes that there is a valid NTP server IP in config_db/ntp.conf]

Change the current system time to a bad time with a large drift from time in ntp server; drift should be greater than 1000s.
Reboot the device.
Before the fix:
3. upon reboot, ntp-config service comes up fine, ntp service goes to active(exited) state without any error message. This is because the offset between new time (from ntp server) and the current system time is very large, ntpd goes to panic mode and exits. The system continues to show the bad time.

After the fix:
3. Upon reboot, ntp-config comes up fine, ntp services comes up from and stays in active (running) state. The system clock gets synced with the ntp server time.
2020-03-22 23:00:40 -07:00
..
ntp [ntp]: modified ntp script to hide the error related to cfggen (#3745) 2019-11-14 00:06:54 -08:00
ntp-config.service [boot] Refactor: All services which start Docker containers start before ntp-config service (#2335) 2018-12-03 16:01:44 -08:00
ntp-config.sh Restart ntp after ntp-config (#1106) 2017-11-07 14:51:07 -08:00
ntp.conf.j2 [ntp]: Add "tinker panic 0" in ntp.conf to avoid ntpd from panic (#4263) 2020-03-22 23:00:40 -07:00