[ntp:questions] Finding out where ntpd gets its ntp.conf file

Peter J. Cherny peterc at luddite.com.au
Thu Sep 4 04:01:09 UTC 2008

Joseph Gwinn wrote:
> Which brings me to a question:  How does one get NTP to tell you exactly 
> where it is getting such things as the ntp.conf file from, all without 
[peterc at tantalus ~]$ strings /usr/sbin/ntpd|grep ntp.conf

[peterc at tantalus ~]$ strace -f -o x /usr/sbin/ntpd -g

[root at tantalus ~]# grep ntp.conf x
3351  open("/etc/ntp.conf", O_RDONLY)   = 4

More information about the questions mailing list