Arthur Lambert wrote:
Hi,
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.
Hi
I've just tried adding an extra server using config-from-file
(ntp-dev-4.2.7p439 NetBSD-6)
ntpq>
config-from-file ntp.conf_add.2014040901
Sending configurstion file, one line at a time.
Keyid: 1
MD5 Password:
Line No: 1 Config Succeeded: server -4 xxx.xxxxx.xx.xx minpoll 8 maxpoll
10 iburst
Done sending file
ntpq> quit
ntpq -p shows the added server
remote refid st t poll reach delay offset jitter
+xxx.xxxxx.xx.xx xxxxxxxxxxxxx 2 u 193 256 7 22.334 2.349 0.113
David
If I am able to create a clean patch to handle runtime modification I
will be happy to share it.
Regards,
Arthur.
2014-04-09 5:34 GMT+02:00 E-Mail Sent to this address will be added to
the BlackLists <Null@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 <blackl...@anitech-systems.com>
will be added to the BlackLists.
_______________________________________________
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions
_______________________________________________
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions