[ntp:questions] Handle ntp conf modification when ntp is already running

Arthur Lambert lambertarthur22 at gmail.com
Wed Apr 9 08:19:50 UTC 2014


Thank you for all your answer.

So in fact Jochen, even if I need for some reason to handle dynamic
change on ntp.conf, you are telling me that it is cleaner and better
to restart the daemon ?

I am currently putting some modification in my ntp conf file thanks to
tr69 protocols. Moreover due to security constraints it is very hard
for me to restart the ntp daemon.. It is quite strange that noone try
to patch ntp daemon to handle runtime modification on ntp conf.

I also tried to use confi-from-file feature from ntpq without success.
I add a ntp url in my ntp conf and run ntpq -c config-from-file
/etc/ntp.conf. Then I am not able to see my new ntp url by running
ntpq -p command.

If I am able to create a clean patch to handle runtime modification I
will be happy to share it.


2014-04-09 5:34 GMT+02:00 E-Mail Sent to this address will be added to
the BlackLists <Null at blacklist.anitech-systems.invalid>:
> On 4/8/2014 2:49 PM, William Unruh wrote:
>> On 2014-04-08, Arthur Lambert wrote:
> ---------|---------|---------|---------|---------|---------|
>>> I am currently using ntpd for my project.
>>>  My need is to be able to use new ntp url when I put a
>>>   new url in ntp.conf even if the ntp daemon is already running.
>>>  Currently, I need to kill and reboot ntpd to be able to
>>>   use the new ntp url set in my configuration file.
>>>  i guess that my solution right now is to start ntpd in a
>>>   hat process to be able to restart it if I detect a change
>>>   in ntp conf file.
>>> Do I have really to restart ntpd to see new ntp url ?
>>> I tried to check option on ntpd to find a way to handle
>>>  this case but I am not able to see this feature in the
>>>  current implementation of ntpd
> You would likely need to use a fairly bleeding edge Dev Release.
> <http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-dev/>
> <http://archive.ntp.org/ntp4/ntp-dev/>
> e.g. Development  4.2.7p439  2014/04/03
> <http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-dev/ntp-dev-4.2.7p439.tar.gz>
> <http://archive.ntp.org/ntp4/ntp-dev/ntp-dev-4.2.7p439.tar.gz>
>> I believe you can tell ntpd anthing that ntp.conf would by using ntpq.
> :config
>> I do not believe that there is a way of telling it to reread the .conf
>> file.
> config-from-file filename
>  I haven't tried either (yet).
> <http://www.eecis.udel.edu/~mills/ntp/html/ntpq.html>
> or e.g. {In the case of the dev ver I last downloaded}
> <ntp-dev-4.2.7p418/html/ntpq.html> See: Control-Message-Commands
> <ntp-dev-4.2.7p418/ntpq/ntpq.html#Control-Message-Commands>
> --
> E-Mail Sent to this address <BlackList at Anitech-Systems.com>
>   will be added to the BlackLists.
> _______________________________________________
> questions mailing list
> questions at lists.ntp.org
> http://lists.ntp.org/listinfo/questions

- Arthur LAMBERT

More information about the questions mailing list