Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
why does /etc/conf.d/ntpd has "-g" ?
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
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3942
Location: Hamburg

PostPosted: Sat Jun 04, 2016 9:26 pm    Post subject: why does /etc/conf.d/ntpd has "-g" ? Reply with quote

I'd assume that /etc/init.d/ntp-client is used to set a time during boot and therefore ntpd shouldn't face any big time jump values, or ?
Back to top
View user's profile Send private message
Syl20
l33t
l33t


Joined: 04 Aug 2005
Posts: 621
Location: France

PostPosted: Mon Jun 06, 2016 9:30 am    Post subject: Reply with quote

Certainly because some sysadmins don't enable ntp-client and ntpd together ?
Ntpdate sets the correct time immediately (and that may cause some problems, particularly with the logs, and all the services hardly depending on the time, like kerberos-based ones), while ntpd adjusts it smoothly.
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1050
Location: Somewhere in Denmark

PostPosted: Mon Jun 06, 2016 6:45 pm    Post subject: Reply with quote

Would a Big ntpd jump be any different from a ntp-client jump?
Back to top
View user's profile Send private message
Syl20
l33t
l33t


Joined: 04 Aug 2005
Posts: 621
Location: France

PostPosted: Tue Jun 07, 2016 12:55 pm    Post subject: Reply with quote

When, for example, some services complain because their log files have a modification time in the future, yes, that could make a difference. And on a server which provides time to several other computers, disabling ntp-client is a good choice.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3942
Location: Hamburg

PostPosted: Tue Jun 07, 2016 7:00 pm    Post subject: Reply with quote

I do know, how "-g" works.
I do wonder why it is activated for most users as a default value.

Gentoo is about choice

If somebody suffers from time jumps - then that user might add "-g" to his option file. Just because he needs it.
That's why ntp-client (== ntpdate) is not added to default runlevel per default. For the same reason "-g" should not be added as a default value.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Tue Jun 07, 2016 9:55 pm    Post subject: Reply with quote

toralf wrote:
If somebody suffers from time jumps - then that user might add "-g" to his option file. Just because he needs it. That's why ntp-client (== ntpdate) is not added to default runlevel per default. For the same reason "-g" should not be added as a default value.

toralf ... I disagree, having -g is the more robust, if there is a (big) discrepency in time then without it ntpd will fail, avoding such a failure should be the default option, particularly as it doesn't effect things otherwise (or are you having an *actual* problem due to the fact -g is enabled?).

As I understand it ntpdate should be used in conjunction with ntpd, but as gentoo doesn't add either to a runlevel it's left to the user to decide what is started or not. ITR the presence '-g' is a resonable default ... and users a free to change it.

best ... khay
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