On Saturday 08 January 2011 21:45:45 Dale wrote:

> Now, with ntp, it logs to messages when it syncs, resets the clock
> and such.  Does chrony do this somewhere too?  I have this in my
> conf file:
[...]
> logdir /var/log/chrony

You need to uncomment the next line too - the one that specifies what to 
log. Remember that an exclamation mark is a comment marker in 
chrony.conf.

> Do I have to create a file for it to log to as well?

Nope. Just switch logging on, as above. If you have your syslog to 
output to VT12 you can read its log output there. In my case I use 
syslog-ng with the default config and VT12 switched on.

> P. S.  I wonder why ntp and openntp didn't work?

Haven't a clue, but I do remember shuddering at the complexity of 
configuring ntp, years ago. From reading this thread I get the impression 
it hasn't improved much since then.

Here's my chrony.conf, minus comments; gate.ethnet is my gateway box:

server uk.pool.ntp.org
server gate.ethnet
maxupdateskew 10
driftfile /etc/chrony/chrony.drift
keyfile /etc/chrony/chrony.keys
commandkey 1
dumponexit
dumpdir /var/log/chrony
initstepslew 30 gate.ethnet
logdir /var/log/chrony
log measurements statistics tracking rtc
allow 192.168.2/24
allow 192.168.3/24
allow 192.168.4/24
logchange 0.5
cmdallow 127.0.0.1
rtcfile /etc/chrony/chrony.rtc
rtconutc

Incidentally, chronyd logs a "cannot open" error the first time it tries 
to write to a log or dump file; it seems to be harmless.

HTH. I'm delighted you got something working!

-- 
Rgds
Peter.          Linux Counter 5290, 1994-04-23.

Reply via email to