From dirkx@foem.leiden.webweaving.org  Fri Mar 14 01:23:40 2003
Return-Path: <dirkx@foem.leiden.webweaving.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E95D937B401
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Mar 2003 01:23:40 -0800 (PST)
Received: from foem.leiden.webweaving.org (fia224-72.dsl.hccnet.nl [62.251.72.224])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 500AF43FCB
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Mar 2003 01:23:37 -0800 (PST)
	(envelope-from dirkx@foem.leiden.webweaving.org)
Received: from foem.leiden.webweaving.org (localhost [127.0.0.1])
	by foem.leiden.webweaving.org (8.12.6/8.12.6) with ESMTP id h2E9NZLF007956
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Mar 2003 10:23:35 +0100 (CET)
	(envelope-from dirkx@foem.leiden.webweaving.org)
Received: (from dirkx@localhost)
	by foem.leiden.webweaving.org (8.12.6/8.12.6/Submit) id h2E9NZrH007955;
	Fri, 14 Mar 2003 10:23:35 +0100 (CET)
Message-Id: <200303140923.h2E9NZrH007955@foem.leiden.webweaving.org>
Date: Fri, 14 Mar 2003 10:23:35 +0100 (CET)
From: Dirk-Willem van Gulik <dirkx@webweaving.org>
Reply-To: Dirk-Willem van Gulik <dirkx@webweaving.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ntpdate not ran before (x)ntpd
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         50000
>Category:       conf
>Synopsis:       ntpdate not ran before (x)ntpd
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 14 01:30:11 PST 2003
>Closed-Date:    Mon Oct 18 00:19:47 GMT 2004
>Last-Modified:  Mon Oct 18 00:19:47 GMT 2004
>Originator:     Dirk-Willem van Gulik
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
WebWeaving
>Environment:
System: FreeBSD foem.leiden.webweaving.org 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Tue Nov 26 13:16:54 CET 2002 dirkx@foem.leiden.webweaving.org:/usr/obj/usr/src/sys/FOEM i386

>Description:

	ntpdate and (x)ntpd both need the same port. I.e. one cannot start ntpd and then
	use ntpdate. 

	Now in some situations it is useful to have an ntpdate done just before starting
	ntpd; as the clock may have gone so far out of sync (as the machine was off for a
	long time) that ntpd is not able to wack it in sync.

>How-To-Repeat:

	just enable both in your rc.conf and see ntpdate fail with a port already
	in use.

>Fix:

	make rc.d/ntpd dependin gon ntpdate - so that the latter is ran first. Then
	you can both have ntpdate run first (and once during boot) to get the clock
	resonably in sync; and then rely on ntpd from thereon.



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: dougb 
State-Changed-When: Fri Mar 14 21:21:58 PST 2003 
State-Changed-Why:  

Your solution seems reasonable. I'll test it. 


Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Fri Mar 14 21:21:58 PST 2003 
Responsible-Changed-Why:  

I'll handle the feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50000 
State-Changed-From-To: analyzed->feedback 
State-Changed-By: dougb 
State-Changed-When: Mon Mar 17 03:11:00 PST 2003 
State-Changed-Why:  

Can you please send me the result of the following: 

rcorder -k FreeBSD -s nostart /etc/rc.d/* 


http://www.freebsd.org/cgi/query-pr.cgi?pr=50000 
State-Changed-From-To: feedback->closed 
State-Changed-By: dougb 
State-Changed-When: Mon Oct 18 00:19:20 GMT 2004 
State-Changed-Why:  

Feedback timeout, plus this should be fixed already. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50000 
>Unformatted:
