how to use ntp in busybox

Wei, Catherine Catherine.Wei at arris.com
Wed Nov 25 02:44:14 UTC 2015


On 11/24/2015 11:54 PM, Rich Felker wrote:
> On Tue, Nov 24, 2015 at 10:40:51AM +0100, walter harms wrote:
>>
>> Am 23.11.2015 07:49, schrieb Wei, Catherine:
>>> Hi:
>>>       I've checked the ntpclient, and found that it can monitor the time
>>> difference between server and local machine, but seems it cannot support
>>> runtime configuration as Michael D. Setzer II said.
>>>
>> We use it busybox ntp for some time now, also with ntpclient since it is convenient.
>> btw: ntpdate is removed from ntp some time ago.
>>
>> Why do you need a runtime configuration at all ? you can always restart with a new setup,
>> write a small wrapper and you can use a file again.
> Indeed, this seems ideal. Proper use of ntp only makes extremely-small
> adjustments to the clock rate, so stopping the ntp client for a
> fraction of a second (or even several hours) and restarting it with
> new configuration is not going to have any noticable effect on the
> system clock.
>
> Rich
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox


Hi:
     For the question that Rich Felker mentioned "Why do I need runtime 
configuration", I would say that a wrapper of ntpd, ntpq and ntpdate 
were added in our platform which embedded to a box. Actually, when our 
platform started or some ntp server information is changed on the fly, 
we use the ntpq wrapper to disable ntpd, start ntpdate process, then 
enable ntpd again. For the other run time configuration, we need to test 
different servers with different minpoll, maxpoll etc, and try to test 
multiple ntp server and watch the behaviors of ntpd. All these have been 
designed very early in our platform.

Best regards
Catherine


More information about the busybox mailing list