Gentoo Archives: gentoo-user

From: Alexander Skwar <listen@×××××××××××××××.name>
To: gentoo-user@l.g.o
Subject: [gentoo-user] chrony seems to ignore configuration file
Date: Sat, 10 Mar 2007 20:13:32
Message-Id: 45F31027.2070000@mid.email-server.info
1 Hello.
2
3 I'd like to use net-misc/chrony-1.21-r1 on a ~x86 system to
4 keep my system time "correct". My chrony.conf contains:
5
6 alexander@blatt ~ $ grep -v ^\# /etc/chrony/chrony.conf|sort|uniq|grep -v ^\!|grep -v ^%|grep -v ^\;
7
8 cmdallow 127.0.0.1
9 commandkey 1
10 driftfile /etc/chrony/chrony.drift
11 keyfile /etc/chrony/chrony.keys
12 logdir /var/log/chrony
13 log measurements statistics tracking
14 rtcdevice /dev/misc/rtc
15 rtcfile /etc/chrony/chrony.rtc
16 rtconutc
17 server 0.ch.pool.ntp.org
18 server 1.ch.pool.ntp.org
19 server 2.ch.pool.ntp.org
20 server 3.ch.pool.ntp.org
21
22 When I now run "chronyc tracking", I get:
23
24 alexander@blatt ~ $ chronyc tracking
25 Reference ID : 0.0.0.0 (0.0.0.0)
26 Stratum : 0
27 Ref time (UTC) : Thu Jan 1 00:00:00 1970
28 System time : 0.000000 seconds fast of NTP time
29 Frequency : 0.000 ppm fast
30 Residual freq : 0.000 ppm
31 Skew : 0.000 ppm
32 Root delay : 0.000000 seconds
33 Root dispersion : 0.000000 seconds
34
35 Also quite interesting is the output of "sources":
36
37 alexander@blatt ~ $ chronyc sources
38 210 Number of sources = 0
39 MS Name/IP address Stratum Poll LastRx Last sample
40 ============================================================================
41
42 I had a closer look at chrony, as I discovered in the morning
43 that my system is 105 seconds fast - and it still IS fast:
44
45 alexander@blatt ~ $ ntpdate -q ch.pool.ntp.org
46 server 194.88.212.205, stratum 3, offset -105.866018, delay 0.03728
47 server 195.216.64.208, stratum 2, offset -105.870447, delay 0.03851
48 server 217.147.223.78, stratum 2, offset -105.869263, delay 0.03853
49 server 213.3.26.5, stratum 3, offset -105.864887, delay 0.08418
50 10 Mar 21:05:03 ntpdate[13878]: step time server 195.216.64.208 offset -105.870447 sec
51
52 Now, as the "chronyc sources" printed "number of sources = 0",
53 I tend to think, that the configuration file is ignored.
54
55 alexander@blatt ~ $ grep -v ^\# /etc/conf.d/chronyd | grep -v ^\$
56 CFGFILE="/etc/chrony/chrony.conf"
57 ARGS="-r -s"
58 test -c /dev/rtc && {
59 grep -q '^rtcfile' "${CFGFILE}" && ARGS="${ARGS} -s"
60 }
61 grep -q '^dumponexit$' "${CFGFILE}" && ARGS="${ARGS} -r"
62
63 alexander@blatt ~ $ ps awux|grep -v vim|grep -v grep|grep -v tail|grep chrony
64 root 13997 0.0 0.1 1956 888 ? S 21:07 0:00 /usr/sbin/chronyd -f /etc/chrony/chrony.conf -r -s -s
65
66 Does chrony work for you? Do I have chrony misconfigured?
67
68 Thanks,
69 Alexander Skwar
70 --
71 Quack!
72 Quack!! Quack!!
73 --
74 gentoo-user@g.o mailing list

Replies

Subject Author
[gentoo-user] Re: chrony seems to ignore configuration file Alexander Skwar <listen@×××××××××××××××.name>