From cjohnson@norton.palomine.net  Sat Mar  3 15:01:11 2001
Return-Path: <cjohnson@norton.palomine.net>
Received: from norton.palomine.net (dsl-64-192-178-205.telocity.com [64.192.178.205])
	by hub.freebsd.org (Postfix) with SMTP id 9274437B719
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  3 Mar 2001 15:01:10 -0800 (PST)
	(envelope-from cjohnson@norton.palomine.net)
Received: (qmail 813 invoked by uid 1000); 3 Mar 2001 23:01:07 -0000
Message-Id: <20010303230107.812.qmail@norton.palomine.net>
Date: 3 Mar 2001 23:01:07 -0000
From: cjohnson-pr@palomine.net
Reply-To: cjohnson-pr@palomine.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: ntpdate_flags in /etc/defaults/rc.conf should be set to "-b"
X-Send-Pr-Version: 3.2

>Number:         25514
>Category:       conf
>Synopsis:       ntpdate_flags in /etc/defaults/rc.conf should be set to "-b"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 03 15:10:01 PST 2001
>Closed-Date:    Wed Mar 28 09:51:08 PST 2001
>Last-Modified:  Wed Mar 28 09:51:22 PST 2001
>Originator:     Chris Johnson
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
>Environment:
>Description:

	According to the ntpdate man page, ntpdate should be run with -b when
        run from a startup file at boot time. This causes the time to be stepped
        rather than slewed.

>How-To-Repeat:
>Fix:

	In /etc/defaults/rc.conf, change ntpdate_flags="" to ntpdate_flags="-b" 

>Release-Note:
>Audit-Trail:

From: Andy Farkas <andyf@speednet.com.au>
To: cjohnson-pr@palomine.net
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/25514: ntpdate_flags in /etc/defaults/rc.conf should be
 set to "-b"
Date: Mon, 5 Mar 2001 19:15:23 +1100 (EST)

 > >Description:
 > 
 > 	According to the ntpdate man page, ntpdate should be run with -b when
 >         run from a startup file at boot time. This causes the time to be stepped
 >         rather than slewed.
 
 The man page also says, by default, if the clock is in error more than 0.5
 second it will step, rather than slew, the time.
 
 What I see as a problem is in /etc/rc.network where it pipes the output of
 ntpdate to /dev/null.  If ntpdate fails to step the clock, and the clock
 is way out of sync, then ntpd (if enabled) will also fail to work.  
 
 /etc/rc.network should be smarter and check return codes when starting
 ntpdate and/or ntpd.  Should it pipe the output to logger(1)??
 
 --
  
  :{ andyf@speednet.com.au
   
         Andy Farkas
     System Administrator
    Speednet Communications
  http://www.speednet.com.au/
   
 
 
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Wed Mar 28 09:51:08 PST 2001 
State-Changed-Why:  
Committed, thanks. 

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