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

Uwe Klein uwe_klein_habertwedt at t-online.de
Fri Sep 5 17:05:59 UTC 2008

Joseph Gwinn wrote:
> We had been struggling with NTP running on Red Hat Enterprise Linux 
> (RHEL) on IBM-built Intel boxes, specifically with getting NTP to 
> generate loopstats and peerstats files.  Basically, nothing worked, 
> despite many attempts.  

imho the most general solution to this problem is using strace.

you can either run a command under strace:
strace -e trace=open,close -o mylogname.log -f ntpd

or attach to a running process.
strace -p $PID

additionally you can see all open files of a process
in /proc/$PID/fd/*


More information about the questions mailing list