(Found unsent in my draft folder) Arthur Lambert writes: > 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'm not sure I'd agree that it is better/cleaner to restart the daemon. There may be some corner cases where the dynamic config stuff doesn't let you do/undo everything - in that case it would be better to find and fix these cases. > 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. Most folks have a strong preference for letting ntpd run for as long as possible. And I think you'll find that there can be a lot to do to "undo" everything that is in-place just to cleanly re-process an ntp.conf file. > 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. Have you tried running those commands from the ntpq CLI, with the :config directive? I also don't know if anybody has written a test case for the config-from-file stuff. That might be a good place to start - you can use the 'saveconfig' directive to test to see if your changes have been made. > If I am able to create a clean patch to handle runtime modification I > will be happy to share it. Please consider discussing your ideas with folks - you are looking at a lot of work and if you want to see your patches included in the main distribution it would be best if we all agreed on how things look. H -- Harlan Stenn <[email protected]> http://networktimefoundation.org - be a member! _______________________________________________ questions mailing list [email protected] http://lists.ntp.org/listinfo/questions
