1 |
On Tue, Dec 10, 2019 at 11:14:48PM -0600, Dale wrote |
2 |
> Walter Dnes wrote: |
3 |
> |
4 |
> > ======================================================================= |
5 |
> > |
6 |
> > strip: x86_64-pc-linux-gnu-strip --strip-unneeded -N __gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R .note.gnu.gold-version |
7 |
> > /usr/bin/chronyc |
8 |
> > /usr/sbin/chronyd |
9 |
> > |
10 |
> |
11 |
> I have no idea what this part is doing. |
12 |
|
13 |
That is approaching the end of the "emerge chrony" process. I wanted |
14 |
to show that I've installed chrony. |
15 |
|
16 |
> |
17 |
> >>>> Installing (1 of 1) net-misc/chrony-3.5-r2::gentoo |
18 |
> >>>> Recording net-misc/chrony in "world" favorites file... |
19 |
> >>>> Auto-cleaning packages... |
20 |
> >>>> No outdated packages were found on your system. |
21 |
> > * GNU info directory index is up-to-date. |
22 |
> > [i660][root][~] man chrony |
23 |
> > No manual entry for chrony |
24 |
> > [i660][root][~] info chrony |
25 |
> > info: No menu item 'chrony' in node '(dir)Top' |
26 |
> > [i660][root][~] emerge --unmerge chrony |
27 |
> > |
28 |
> > ======================================================================= |
29 |
|
30 |
> I found the manual here. It was the first hit on google for me. |
31 |
> |
32 |
> https://chrony.tuxfamily.org/documentation.html |
33 |
|
34 |
> Hope that helps. |
35 |
|
36 |
Thanks. From that webpage... |
37 |
|
38 |
> 2.7. Does chronyd have an ntpdate mode? |
39 |
> |
40 |
> Yes. With the -q option chronyd will set the system clock once and |
41 |
> exit. With the -Q option it will print the measured offset without |
42 |
> setting the clock. If you don't want to use a configuration file, |
43 |
> NTP servers can be specified on the command line. For example: |
44 |
> |
45 |
> # chronyd -q 'pool pool.ntp.org iburst' |
46 |
|
47 |
So I ran a script 3 times... |
48 |
|
49 |
#!/bin/bash |
50 |
date |
51 |
chronyd -q 'pool ca.pool.ntp.org iburst' |
52 |
date |
53 |
|
54 |
...and I got... |
55 |
|
56 |
[i660][root][~] ./settime |
57 |
Wed 11 Dec 2019 12:18:45 PM EST |
58 |
2019-12-11T17:18:45Z chronyd version 3.5 starting (+CMDMON +NTP +REFCLOCK +RTC -PRIVDROP +SCFILTER -SIGND +ASYNCDNS -SECHASH -IPV6 -DEBUG) |
59 |
2019-12-11T17:18:50Z System clock wrong by 0.574369 seconds (step) |
60 |
2019-12-11T17:18:51Z chronyd exiting |
61 |
Wed 11 Dec 2019 12:18:51 PM EST |
62 |
[i660][root][~] ./settime |
63 |
Wed 11 Dec 2019 12:19:06 PM EST |
64 |
2019-12-11T17:19:06Z chronyd version 3.5 starting (+CMDMON +NTP +REFCLOCK +RTC -PRIVDROP +SCFILTER -SIGND +ASYNCDNS -SECHASH -IPV6 -DEBUG) |
65 |
2019-12-11T17:19:12Z System clock wrong by -0.000421 seconds (step) |
66 |
2019-12-11T17:19:12Z chronyd exiting |
67 |
Wed 11 Dec 2019 12:19:12 PM EST |
68 |
[i660][root][~] ./settime |
69 |
Wed 11 Dec 2019 12:19:18 PM EST |
70 |
2019-12-11T17:19:18Z chronyd version 3.5 starting (+CMDMON +NTP +REFCLOCK +RTC -PRIVDROP +SCFILTER -SIGND +ASYNCDNS -SECHASH -IPV6 -DEBUG) |
71 |
2019-12-11T17:19:23Z System clock wrong by -0.000084 seconds (step) |
72 |
2019-12-11T17:19:23Z chronyd exiting |
73 |
Wed 11 Dec 2019 12:19:23 PM EST |
74 |
|
75 |
I'm not totally happy that I have to run it 3 times, but I can do that |
76 |
in the script. I prefer openrdate's approach where it gets the exact |
77 |
time once. What's with this "step" fetish? |
78 |
|
79 |
-- |
80 |
Walter Dnes <waltdnes@××××××××.org> |
81 |
I don't run "desktop environments"; I run useful applications |