Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
question about ntp-client [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nein
Guru
Guru


Joined: 14 Nov 2003
Posts: 346
Location: Spain

PostPosted: Tue Sep 14, 2004 2:36 pm    Post subject: question about ntp-client [solved] Reply with quote

Hi all,

I have read that ntp-client is used to update the clock when booting and ntpd to adjust the clock while the system is running.
If so, why is ntp-client a service with a script in /etc/init.d that starts a service that keeps running ? Shouldn't it be a script that is run at boot time once and not a daemon ? what does it do after the initial update ?

Can somebody help me ? Thanks in advance


Last edited by nein on Thu Jan 13, 2005 4:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
biznatch
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 220
Location: Wichita, KS

PostPosted: Tue Sep 14, 2004 3:12 pm    Post subject: Reply with quote

Sometimes people want to get ntp updates without running a ntp server (for security reasons). I believe the client service is used for that.
_________________
While your waiting for your post to be answered, please help with unanswered posts.
Back to top
View user's profile Send private message
nein
Guru
Guru


Joined: 14 Nov 2003
Posts: 346
Location: Spain

PostPosted: Tue Sep 14, 2004 5:29 pm    Post subject: Reply with quote

Thanks for your reply
So does running both ntpd and ntp-client make any sense ?
Does ntp-client also update the time after the boot process ?
Back to top
View user's profile Send private message
markkuk
Guru
Guru


Joined: 29 Nov 2002
Posts: 446

PostPosted: Tue Sep 14, 2004 7:09 pm    Post subject: Re: question about ntp-client Reply with quote

nein wrote:
why is ntp-client a service with a script in /etc/init.d that starts a service that keeps running ? Shouldn't it be a script that is run at boot time once and not a daemon ? what does it do after the initial update ?

ntp-client is a script that gets run at boot time once, it doesn't start any daemons and simply exits after the initial update.
Back to top
View user's profile Send private message
nein
Guru
Guru


Joined: 14 Nov 2003
Posts: 346
Location: Spain

PostPosted: Wed Sep 15, 2004 7:22 am    Post subject: Reply with quote

I was confused because

/etc/init.d/ntp-client status

says "started" and I thought it left something running (but as the ps command shows I was wrong)

Thanks for your help
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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