join
donate

Getting ntpd its Configuration

Related Items: bug_small.png Bug #923

Current Practice

Traditionally, ntpd gets its configuration information from /etc/ntp.conf.

Using the -C flag to specify additional configuration files

If the simulator is no longer using the -C flag then we could use -C filename to mean "process filename as an additional configuration file".

The following URL extension could also be used in this case.

Extending the -c to specify additional configuration files

The -c flag to ntpd can be used to specify the filename of an ntp.conf file.

If we allowed a URL as an argument we could support additional methods of getting this information to ntpd.

Including a local file

Syntax: ntpd -c file:///etc/ntp.conf

This is equivalent to ntpd -c /etc/ntp.conf.

Retrieving a file via HTTP

Syntax: ntpd -c http://server/ntp.conf

If the web server on server processed this URL, it could take the 'client' information from the HTTP request and customize a response.

Retrieving a file via DHCP

Syntax: ntpd -c dhcpinfo://server

Communicate with a DHCP server to get any NTP configuration information it might have.

Comments and Discussion

Rather than adding a -C to process an additional config file, why not simply allow -c to be specified multiple times?

And regarding my request, I would suggest adding a (possibly multiply given) -e flag that would have as its argument a string that would be processed as a single line config file.

BrianUtterback - 23 Oct 2007


I'm concerned that changing the behavior of multiple -c instances would be a break with backward compatibility.

I'm OK with multiple -e instances.

-- HarlanStenn - 23 Oct 2007



This topic: Dev > WebHome > DevelopmentIssues > GettingNtpdItsConfiguration
Topic revision: r4 - 2007-10-23 - 18:29:42 - SteveKostecke
 
SSL security by CAcert
Get the CAcert Root Certificate
This site is powered by the TWiki collaboration platform
IPv6 Ready
Copyright & 1999-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding the site? Send feedback