Talk:Ntp

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
Before creating a discussion or leaving a comment, please read about using talk pages. To create a new discussion, click here. Comments on an existing discussion should be signed using ~~~~:
A comment [[User:Larry|Larry]] 13:52, 13 May 2024 (UTC)
: A reply [[User:Sally|Sally]] 09:24, 5 November 2024 (UTC)
:: Your reply ~~~~

Confusing article

Talk status
This discussion is done.

This article is highly confusing, if you follow it:

  • the title is about the NTP protocol
  • the gentoo package is called net-misc/ntp (the 2nd ntp but not uppercase),
  • and there are pieces of net-misc/openntpd, leading the reader to think he could run ntpd with only ntp as a service.

One could do:

  • rename he article to "ntp" because it should explain the usage/installation/configuration if this application.
  • remove the pieces of net-misc/openntpd

Or other suggestions? Needle (talk) 18:08, 11 January 2013 (UTC)

This page is kinda a mess... 666threesixes666 (talk) 22:41, 6 September 2013 (UTC)
The articles NTP and OpenNTPd are separate. Moved ressouces to the right article Needle (talk) 23:23, 14 May 2016 (UTC)
Thanks for the clean up! --Maffblaster (talk) 07:58, 15 May 2016 (UTC)

Explain NTPD_OPTS

Talk status
This discussion is done.

The file /etc/conf.d/ntpd is not mentioned. Please explain NTPD_OPTS:

FILE /etc/conf.d/ntpd
# /etc/conf.d/ntpd
# Options to pass to the ntpd process
# Most people should leave this line alone ...
# however, if you know what you're doing, feel free to tweak
NTPD_OPTS="-g -u ntp:ntp"
Charles, you probably have figured this out by now. The /etc/conf.d/ntpd file is a service configuration file for the NTP daemon. The NTPD_OPTS variable simply holds values (options and arguements) that are passed to the NTP daemon when it starts. Look at the ntpd man page to see what the options are doing. :) Cheers! --Maffblaster (talk) 07:58, 15 May 2016 (UTC)

On systems where a network connection is not always available at boot

Talk status
This discussion is done.
FILE /etc/ntp.conf
server 127.127.1.0

fudge  127.127.1.0 stratum 10

is it correct?

Maybe 127.0.0.1? — The preceding unsigned comment was added by ‎Kurlovitsch (talkcontribs)

Looks like this http://www.ntp.org/ntpfaq/NTP-s-config.htm#AEN2771 and this https://en.wikipedia.org/wiki/Reserved_IP_addresses#IPv4 --Cronolio (talk) 16:05, 2 May 2019 (UTC)

Move Busybox to Network Time Protokol

Talk status
This discussion is still ongoing.

I would like to see the Busybox stuff to implementations of the Network Time Protocol article.--Charles17 (talk) 15:47, 15 June 2020 (UTC)

ntpdate deprecation (used by /etc/init.d/ntp-client)

Talk status
This discussion is still ongoing.

The man page of the command ntpdate, which is used by /etc/init.d/ntp-client, begins with the following statementː

ntpdate - set the date and time via NTP

Disclaimer:  This  program has known bugs and deficiencies and nobody has volunteered to fix them in a long time. The good news is the functionality originally intended for this program is available in the ntpd  and sntp  programs.  See  the  Deprecating  ntpdate topic in the NTP Support wiki for a thorough discussion and analysis of the issues. See the -q command line option in the ntpd - Network  Time  Protocol  (NTP)  daemon page  and/or  the sntp - Simple Network Time Protocol (SNTP) Client page. After a suitable period of mourning, the ntpdate program will be retired from this distribution.

This suggests ntpdate is deprecated and will be removed in the future. The wiki should reflect that somehow, e.g. by advising to use ntpd instead, describing a migration path, etc.

I am, however, not quite sure regarding reliable information on this topic - I was unable to find the mentioned 'NTP Support wiki'.

EDITː Found more info on this in the man page of ntpdː

-q, --quit
       Set the time and quit.  This option must not appear in combination with any of the following options: saveconfigquit, wait-sync.

       ntpd will not daemonize and will exit after the clock is first synchronized.  This behavior mimics that of the ntpdate program,
       which will soon be replaced with a shell script.  The -g and -x options can be used  with this option.  Note: The kernel time
       discipline is disabled with this option.

Maxxim (talk) 17:07, 17 May 2021 (UTC)

Also, if the fork net-misc/ntpsec is used instead of net-misc/ntp, there is not even a ntpdate command. It seems the developers of the fork have removed it. A solution, that would work with ntp and ntpsec would certainly be nice... Luttztfz (talk) 04:20, 11 June 2021 (UTC)

Systemd

The systemd part should include a link to configure the NTP client which is included in systemd (systemd-timesyncd), a link to the setup Wiki could be used like Handbook:Parts/Installation/Tools#systemd_4. Emmanueld (talk) 13:35, 27 April 2024 (UTC)