1 |
Another solution if you are having ntpd problems, is to use this command |
2 |
from a crontab: |
3 |
|
4 |
ntpdate -b time.nist.gov |
5 |
|
6 |
stop ntpd before that |
7 |
|
8 |
On Fri, 18 Nov 2005, Robert Persson wrote: |
9 |
|
10 |
> A week or two back I reset my system clock temporarily to 2001 in order to |
11 |
> install a package under wine with a time-limited installer, after which I set |
12 |
> it back again. Since then I have been getting really weird and annoying |
13 |
> clock behaviour. |
14 |
> |
15 |
> For instance I sometimes find that the kde clock tells me that I am on UTC |
16 |
> rather than PST. At other times it tells me that I am on PST, but gives a |
17 |
> time exactly 8 hours in the future. |
18 |
> |
19 |
> Now it is getting even weirder because I find that when I boot up and enter |
20 |
> kde, the clock shows a time approximately, but not exactly, 10 days in the |
21 |
> past. For instance the time now is 18 Nov 2005 10:03 am, but the clock |
22 |
> thinks it is 8 nov 2005 7:13 am. Yesterday at the same time it thought it |
23 |
> was 8 nov 7.xx pm. |
24 |
> |
25 |
> Sometimes I am able to correct the time using the kde control panel. |
26 |
> Sometimes I am not and I have to use the other control panel I find in my K |
27 |
> menu (which I believe to be the Gnome one, but I'm not sure). |
28 |
> |
29 |
> I have enabled ntpd in my default runlevel, and /etc/init.d/ntpd status |
30 |
> returns "started". However, when I select "Set date and time automatically" |
31 |
> in the kde control panel, I get the error "Unable to contact time server: |
32 |
> http://www.pool.ntp.org/zone/north-america", and I get the same error no |
33 |
> matter which server I select or type in. The (Gnome?) control panel does |
34 |
> allow me to select "Synchronize clock with internet servers", but when I do |
35 |
> so nothing happens, no matter how many servers I select. |
36 |
> |
37 |
> How can I get ntpd and/or ntp-client working properly? |
38 |
> |
39 |
> This is my current /etc/ntp.conf: |
40 |
> |
41 |
> restrict default noquery notrust nomodify |
42 |
> restrict 127.0.0.1 |
43 |
> restrict 192.168.1.0 mask 255.255.255.0 |
44 |
> fudge 127.127.1.0 stratum 3 |
45 |
> driftfile /var/lib/ntp/ntp.drift |
46 |
> logfile /var/log/ntp.log |
47 |
> server time.nrc.ca |
48 |
> server ntp1.cmc.ec.gc.ca |
49 |
> server ntp2.cmc.ec.gc.ca |
50 |
> server clock.tricity.wsu.edu |
51 |
> server wuarchive.wustl.edu |
52 |
> server clock.psu.edu |
53 |
> server gilbreth.ecn.purdue.edu |
54 |
> server molecule.ecn.purdue.edu |
55 |
> server libra.rice.edu |
56 |
> server ntp.cox.smu.edu |
57 |
> |
58 |
> and this is my /var/log/ntp.log: |
59 |
> |
60 |
> 13 Nov 15:38:34 ntpd[7996]: synchronized to LOCAL(0), stratum 5 |
61 |
> 13 Nov 15:53:30 ntpd[7996]: kernel time sync disabled 0041 |
62 |
> 13 Nov 15:54:34 ntpd[7996]: kernel time sync enabled 0001 |
63 |
> 14 Nov 05:44:27 ntpd[7996]: ntpd exiting on signal 15 |
64 |
> 7 Nov 05:47:11 ntpd[9980]: synchronized to LOCAL(0), stratum 5 |
65 |
> 7 Nov 05:47:11 ntpd[9980]: kernel time sync disabled 0041 |
66 |
> 7 Nov 05:48:17 ntpd[9980]: kernel time sync enabled 0001 |
67 |
> 7 Nov 05:56:50 ntpd[9980]: ntpd exiting on signal 15 |
68 |
> 7 Nov 05:59:57 ntpd[10925]: synchronized to LOCAL(0), stratum 5 |
69 |
> 7 Nov 05:59:57 ntpd[10925]: kernel time sync disabled 0041 |
70 |
> 7 Nov 06:01:01 ntpd[10925]: kernel time sync enabled 0001 |
71 |
> 7 Nov 06:16:23 ntpd[10925]: ntpd exiting on signal 15 |
72 |
> 14 Nov 20:29:38 ntpd[24699]: ntpd exiting on signal 15 |
73 |
> 16 Nov 21:45:26 ntpd[9972]: ntpd exiting on signal 15 |
74 |
> 16 Nov 21:45:26 ntpd[10536]: parent died before we finished, exiting |
75 |
> 17 Nov 20:35:43 ntpd[9948]: ntpd exiting on signal 15 |
76 |
> |
77 |
> Note that there is no entry in the log for today (18 nov) even though I have |
78 |
> attempted today (18 nov according to both me and the computer) to disable and |
79 |
> reenable synchronisation through the (Gnome?) control panel. |
80 |
> |
81 |
> Many thanks |
82 |
> Robert |
83 |
> -- |
84 |
> Robert Persson |
85 |
> |
86 |
> "Don't use nuclear weapons to troubleshoot faults." |
87 |
> (US Air Force Instruction 91-111, 1 Oct 1997) |
88 |
> |
89 |
> -- |
90 |
> gentoo-user@g.o mailing list |
91 |
> |
92 |
> |
93 |
-- |
94 |
gentoo-user@g.o mailing list |