ports/169787: Openntpd port stomps on ntpdate in rcorder(8)
Brian Conway
bugs at zxvf.us
Wed Jul 11 16:30:02 UTC 2012
>Number: 169787
>Category: ports
>Synopsis: Openntpd port stomps on ntpdate in rcorder(8)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 11 16:30:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Brian Conway
>Release: 8.3-RELEASE-p3
>Organization:
>Environment:
FreeBSD test.zxvf.local 8.3-RELEASE-p3 FreeBSD 8.3-RELEASE-p3 #4: Tue Jun 12 14:44:09 UTC 2012 root at fbsd83.zxvf.local:/usr/obj/nanobsd.tar/usr/src/sys/GENERIC.nodebug i386
>Description:
In base, the rc.d script for ntpd includes a REQUIRE: ntpdate, which allows ntpdate to initially set the time, followed by running ntpd.
It appears openntpd's rc.d script has no such REQUIRE:, and I frequently find that openntpd will start first, and ntpdate cannot run and set the initial time. This can be a pain on a system that is significantly skewed on cold boot.
>How-To-Repeat:
Include in rc.conf, after installing openntpd port:
ntpdate_enable="YES"
ntpdate_hosts="us.pool.ntp.org"
openntpd_enable="YES"
Boot the system.
>Fix:
Update /usr/local/etc/rc.d/openntpd to include:
# REQUIRE: DAEMON ntpdate
For reference, ntpd's rc-script includes all of the following (may not be relevant):
# REQUIRE: DAEMON ntpdate cleanvar devfs
Thanks.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list