public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] chrony seems to ignore configuration file
@ 2007-03-10 20:08 Alexander Skwar
  2007-03-12 10:18 ` [gentoo-user] " Alexander Skwar
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Skwar @ 2007-03-10 20:08 UTC (permalink / raw
  To: gentoo-user

Hello.

I'd like to use net-misc/chrony-1.21-r1 on a ~x86 system to
keep my system time "correct". My chrony.conf contains:

alexander@blatt ~ $ grep -v ^\# /etc/chrony/chrony.conf|sort|uniq|grep -v ^\!|grep -v ^%|grep -v ^\;

cmdallow 127.0.0.1
commandkey 1
driftfile /etc/chrony/chrony.drift
keyfile /etc/chrony/chrony.keys
logdir /var/log/chrony
log measurements statistics tracking
rtcdevice /dev/misc/rtc
rtcfile /etc/chrony/chrony.rtc
rtconutc
server 0.ch.pool.ntp.org
server 1.ch.pool.ntp.org
server 2.ch.pool.ntp.org
server 3.ch.pool.ntp.org

When I now run "chronyc tracking", I get:

alexander@blatt ~ $ chronyc tracking
Reference ID    : 0.0.0.0 (0.0.0.0)
Stratum         : 0
Ref time (UTC)  : Thu Jan  1 00:00:00 1970
System time     : 0.000000 seconds fast of NTP time
Frequency       : 0.000 ppm fast
Residual freq   : 0.000 ppm
Skew            : 0.000 ppm
Root delay      : 0.000000 seconds
Root dispersion : 0.000000 seconds

Also quite interesting is the output of "sources":

alexander@blatt ~ $ chronyc sources
210 Number of sources = 0
MS Name/IP address           Stratum Poll LastRx Last sample
============================================================================

I had a closer look at chrony, as I discovered in the morning
that my system is 105 seconds fast - and it still IS fast:

alexander@blatt ~ $ ntpdate -q ch.pool.ntp.org
server 194.88.212.205, stratum 3, offset -105.866018, delay 0.03728
server 195.216.64.208, stratum 2, offset -105.870447, delay 0.03851
server 217.147.223.78, stratum 2, offset -105.869263, delay 0.03853
server 213.3.26.5, stratum 3, offset -105.864887, delay 0.08418
10 Mar 21:05:03 ntpdate[13878]: step time server 195.216.64.208 offset -105.870447 sec

Now, as the "chronyc sources" printed "number of sources = 0",
I tend to think, that the configuration file is ignored.

alexander@blatt ~ $ grep -v ^\# /etc/conf.d/chronyd | grep -v ^\$
CFGFILE="/etc/chrony/chrony.conf"
ARGS="-r -s"
test -c /dev/rtc && {
        grep -q '^rtcfile' "${CFGFILE}" && ARGS="${ARGS} -s"
}
grep -q '^dumponexit$' "${CFGFILE}" && ARGS="${ARGS} -r"

alexander@blatt ~ $ ps awux|grep -v vim|grep -v grep|grep -v tail|grep chrony
root     13997  0.0  0.1   1956   888 ?        S    21:07   0:00 /usr/sbin/chronyd -f /etc/chrony/chrony.conf -r -s -s

Does chrony work for you? Do I have chrony misconfigured?

Thanks,
Alexander Skwar
-- 
Quack!
	Quack!! Quack!!
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-user]  Re: chrony seems to ignore configuration file
  2007-03-10 20:08 [gentoo-user] chrony seems to ignore configuration file Alexander Skwar
@ 2007-03-12 10:18 ` Alexander Skwar
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Skwar @ 2007-03-12 10:18 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar <listen@alexander.skwar.name>:

> Does chrony work for you? Do I have chrony misconfigured?

For the archive:

I sort of had chrony misconfigured. On my system, I had the
"rtc" kernel module loaded. As soon as I exchanged that with
the "genrtc" module, chrony loaded the servers just fine.

It's documented, that the genrtc module is to be used. Nonetheless
I think it's bad that chrony did not even load the list of servers
if the wrong RTC module is loaded.

But that's just the way it is, I guess.

Regards,

Alexander Skwar

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-12 10:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-10 20:08 [gentoo-user] chrony seems to ignore configuration file Alexander Skwar
2007-03-12 10:18 ` [gentoo-user] " Alexander Skwar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox