View previous topic :: View next topic |
Author |
Message |
jmbargar n00b
Joined: 24 Mar 2007 Posts: 17 Location: Spain
|
Posted: Wed Apr 04, 2007 5:46 pm Post subject: NTP does not work at startup |
|
|
Well, I have a problem with NTP. I have merged ntp-client and I have added it to default runlevel in this form:
Code: | rc-update add ntp-client default |
When I do:
Code: | rc-update show | grep ntp |
the output is the follow:
ntp-client | default
ntpd | default
so I think all must be ok. Well, when I reset my computer the time is wrong and I don't know why. If I do in a console the follow:
Code: | /etc/init.d/ntp-client start |
the time is corrected but I can't do the ntp-client run at startup.
Any ideas?
Thanks for reading my post _________________ J. Manuel Barrios |
|
Back to top |
|
|
Bobnoxous Apprentice
Joined: 03 May 2005 Posts: 240
|
Posted: Wed Apr 04, 2007 6:22 pm Post subject: |
|
|
Maybe the corrected time isn't being saved to the Hw. Is
> CLOCK_SYSTOHC="yes"
in /etc/conf.d/clock? _________________ "The problem with the world is that fools and fanatics are always so sure of themselves while wiser people are so full of doubt."
- Bertrand Russell |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Wed Apr 04, 2007 8:36 pm Post subject: |
|
|
ntp needs to be set up |
|
Back to top |
|
|
Bobnoxous Apprentice
Joined: 03 May 2005 Posts: 240
|
Posted: Wed Apr 04, 2007 8:48 pm Post subject: |
|
|
He said the time was corrected when he starts /etc/init.d/ntp-client, so I believe it's not an ntp setup issue. _________________ "The problem with the world is that fools and fanatics are always so sure of themselves while wiser people are so full of doubt."
- Bertrand Russell |
|
Back to top |
|
|
jmbargar n00b
Joined: 24 Mar 2007 Posts: 17 Location: Spain
|
Posted: Wed Apr 04, 2007 9:56 pm Post subject: |
|
|
I think my problem is connected with the runlevel. I think so because when I add ntp-client to the default runlevel the client must run at startup, mustn't it? Well, if it happens when I do:
Code: | /etc/init.d/ntp-client start |
in my opinion the output must be something like that:
* WARNING: ntp-client has already been started.
but really the output is:
* Setting clock via the NTP client 'ntpdate' ...
and after this output the time is corrected. If I try to do another time the follow:
Code: | /etc/init.d/ntp-client start |
the output now is:
* WARNING: ntp-client has already been started.
from this it follows that ntp-client isn't run although I have added it to the default runlevel.
Anyway, I post here the lines I have uncomments in my /etc/conf.d/clock:
CLOCK="UTC"
TIMEZONE="Europe/Madrid"
CLOCK_OPTS=""
CLOCK_SYSTOHC="no"
SRM="no"
ARC="no"
If I change the option CLOCK_SYSTOHC="yes" I have to have done the follow:
Code: | /etc/init.d/ntp-client start |
before reset for changing the hardware values and when my computer boots take the time without using ntp in the same way.
Thanks for your answers and for reading my post _________________ J. Manuel Barrios |
|
Back to top |
|
|
|