Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NTP does not work at startup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jmbargar
n00b
n00b


Joined: 24 Mar 2007
Posts: 17
Location: Spain

PostPosted: Wed Apr 04, 2007 5:46 pm    Post subject: NTP does not work at startup Reply with quote

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
View user's profile Send private message
Bobnoxous
Apprentice
Apprentice


Joined: 03 May 2005
Posts: 240

PostPosted: Wed Apr 04, 2007 6:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Apr 04, 2007 8:36 pm    Post subject: Reply with quote

ntp needs to be set up :wink:
Back to top
View user's profile Send private message
Bobnoxous
Apprentice
Apprentice


Joined: 03 May 2005
Posts: 240

PostPosted: Wed Apr 04, 2007 8:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
jmbargar
n00b
n00b


Joined: 24 Mar 2007
Posts: 17
Location: Spain

PostPosted: Wed Apr 04, 2007 9:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum