Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Oct 2002 18:29:34 -0400 (EDT)
From:      Chris Pepper <pepper@rockefeller.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   misc/44286: /etc/defaults/rc.conf uses the obsolete ntpdate
Message-ID:  <20021019222934.10D64ACD8@www.reppep.com>

next in thread | raw e-mail | index | archive | help

>Number:         44286
>Category:       misc
>Synopsis:       /etc/defaults/rc.conf uses the obsolete ntpdate
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 19 15:30:03 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Chris Pepper
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD www.reppep.com 4.7-STABLE FreeBSD 4.7-STABLE #3: Sun Oct 13 01:47:03 EDT 2002 root@www.reppep.com:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	/etc/defaults/rc.conf suggests ntpdate, but ntpdate(8) says it's been superseded by ntpd.

[www:~] root# grep -i ntp /etc/defaults/rc.conf
ntpdate_enable="NO"             # Run ntpdate to sync time on boot (or NO).
ntpdate_program="/usr/sbin/ntpdate"     # path to ntpdate, if you want a different one.
ntpdate_flags="-b"              # Flags to ntpdate (if enabled).
xntpd_enable="NO"               # Run ntpd Network Time Protocol (or NO).
xntpd_program="/usr/sbin/ntpd"  # path to ntpd, if you want a different one.
xntpd_flags="-p /var/run/ntpd.pid"      # Flags to ntpd (if enabled).

[www:~] pepper> man ntpdate
NTPDATE(8)              FreeBSD System Manager's Manual             NTPDATE(8)

NAME
     ntpdate - set the date and time via NTP

SYNOPSIS
     ntpdate [-bBdoqsuv] [-a key] [-e authdelay] [-k keyfile] [-o version]

DESCRIPTION
     Note: The functionality of this program is now available in the ntpd(8)
     program.  See the -q command line option in the ntpd(8) page.  After a
     suitable period of mourning, the ntpdate program is to be retired from
     this distribution.
>How-To-Repeat:
	grep ntp /etc/defaults/rc.conf
	man ntpdate
>Fix:
	Change ntpdate_program in /etc/defaults/rc.conf to ntpd and clear ntpdate_flags, since -b means something entirely different between ntpdate and ntpd.
	This assumes that ntpd is otherwise a suitable replacement for ntpd, which I understand from its man page, but have not confirmed personally.
>Release-Note:
>Audit-Trail:
>Unformatted:
 	

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021019222934.10D64ACD8>