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

Rob nomail at example.com
Thu Sep 4 17:35:03 UTC 2008

Richard B. Gilbert <rgilbert88 at comcast.net> wrote:
> My memory grows DIMM but ISTR there is a program in at least some Unix 
> or Unix-like operating systems that will tell you which program(s) have 
> which files open.
> Give me a few weeks or months to think about it and the answer will 
> bubble up from the sludge at the bottom of my mind!

ls -l /proc/`pidof ntpd`/fd

But it does not work in this case, because the ntp.conf file is closed
after being read.  So it does not show in the list of open files of the
running ntpd.

More information about the questions mailing list