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

2014-04-09 Thread Arthur Lambert
Hi Rob,

I know that my question can be stupid but I am not very familiar with
open source project. If tomorrow someone decides to develop a feature
on ntp. Who can decide if the feature will be integrated to the trunk
of the project ? People have to convince the main guys of the projects
?

So I will use the above method to handle my runtime modification. If I
find free time to handle SIGHUP and if I am able to write a proper
code to do it, I will share my changes in this topic.

2014-04-09 18:04 GMT+02:00 Rob :
> David Lord  wrote:
>> 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.x.xx.xx minpoll 8 maxpoll
>> 10 iburst
>> Done sending file
>> ntpq> quit
>>
>> ntpq -p shows the added server
>>
>>   remote  refid st tpoll reach  delay offset jitter
>> +xxx.x.xx.xx x  2 u 193 256 7 22.334  2.349  0.113
>>
>>
>> David
>
> Indeed it can be done that way.
>
> For Arthur: you need to modify the ntp.conf in case the system is
> rebooted outside your control (it will then use the values from ntp.conf)
> and at the same time use the above method to add the new server
> immediately.
> Then you do not need to restart ntpd and you can still change the config.
>
> OF COURSE ntpd should simply listen for SIGHUP and when it is received
> re-read the config file.  Like almost all Unix daemons do.
>
> However, you will have a hard time convincing the group here, as you
> already found out.
>
> ___
> questions mailing list
> questions@lists.ntp.org
> http://lists.ntp.org/listinfo/questions



-- 
- Arthur LAMBERT
___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


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

2014-04-09 Thread Arthur Lambert
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.

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 :
> 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}
>  See: Control-Message-Commands
> 
>
>
> --
> E-Mail Sent to this address 
>   will be added to the BlackLists.
>
> ___
> questions mailing list
> questions@lists.ntp.org
> http://lists.ntp.org/listinfo/questions



-- 
- Arthur LAMBERT
___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


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

2014-04-08 Thread Arthur Lambert
Hi David,

I don't get your point. You know that we can live just with fire ? Why do
we invent electricity  And computer ? This is exactly the same here. I
change the channel on my tv, I dont want to reboot it to get the new tv
channel It's worked ok but it a very strange choice of architecture.

But I can guess with your answer that I cannot handle modification on my
ntp conf without restart it. I will try to patch it to get it work with my
need.

Thanks,
Arthur.
Le 8 avr. 2014 16:19, "David Lord"  a écrit :

> Arthur Lambert wrote:
>
>> Hi,
>>
>> 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
>>
>
> Hi
>
> I've lived with "your problem" since 1997 when I switched from
> mostly running chrony to mostly running ntp.
>
> I never saw it as a problem.
>
>
> David
>
> ___
> 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


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

2014-04-08 Thread Arthur Lambert
Hi,

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

Thanks & Regards
- Arthur LAMBERT
___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions