From owner-svn-src-head@FreeBSD.ORG Wed Jan 28 05:21:02 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B68B11065673 for ; Wed, 28 Jan 2009 05:21:02 +0000 (UTC) (envelope-from grafan@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 44B4C8FC1D for ; Wed, 28 Jan 2009 05:21:02 +0000 (UTC) (envelope-from grafan@gmail.com) Received: by fg-out-1718.google.com with SMTP id e12so363277fga.35 for ; Tue, 27 Jan 2009 21:21:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=fcFhHH8NC3/mxhCu20l860P0RwWLh0mrfWc9k5qABok=; b=Q6UqyHQkNvylgRcdK0omAqKCPUhxc69GCO6v1KaYgCbnFjQ7CCyZ4KS6QA7BQCk/Oj GahTmfUb3LbzsOusYQi/T8c4MAo0e5wh4QwLgw71/n/dLfvZb7I1MrjFuk48X+8rdRsM sLSnghi0JQh3nNSjwg/2s9i1sVyZ0delnawDg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=lPF/upPD7+/rVCQtl1L1WZ6CfNE/1u76X14e/UonJ1GJg8P8rn+nnZfiQqM6koX87u kDLmOona3pMejw/+XFiNaaJ2qBth86CBCDeLGwN9HuxsnNCXaC8FgfbcR8S34S5jWYE+ Ap2rmgTUcHHsCtxDUw+kZbg4Vtmikrfc/R6Pk= MIME-Version: 1.0 Received: by 10.181.153.12 with SMTP id f12mr1271925bko.132.1233118222904; Tue, 27 Jan 2009 20:50:22 -0800 (PST) In-Reply-To: <200901272013.n0RKDOBR095434@svn.freebsd.org> References: <200901272013.n0RKDOBR095434@svn.freebsd.org> Date: Wed, 28 Jan 2009 12:50:22 +0800 Message-ID: <6eb82e0901272050l6678ea37idc8ea53e948a15e5@mail.gmail.com> From: Rong-en Fan To: Giorgos Keramidas Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r187782 - in head: etc/rc.d share/man/man5 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2009 05:21:03 -0000 On Wed, Jan 28, 2009 at 4:13 AM, Giorgos Keramidas wrote: > Author: keramida (doc committer) > Date: Tue Jan 27 20:13:24 2009 > New Revision: 187782 > URL: http://svn.freebsd.org/changeset/base/187782 > > Log: > When synchronizing the clock at system startup time, use both > the -g and -q options. They do a slightly different thing and > both are necessary when the time difference is large. > > Noticed by: danger, in the forums > Approved by: roberto > MFC after: 1 week > > Modified: > head/etc/rc.d/ntpd > head/share/man/man5/rc.conf.5 > > Modified: head/etc/rc.d/ntpd > ============================================================================== > --- head/etc/rc.d/ntpd Tue Jan 27 19:56:38 2009 (r187781) > +++ head/etc/rc.d/ntpd Tue Jan 27 20:13:24 2009 (r187782) > @@ -23,7 +23,7 @@ ntpd_precmd() > rc_flags="-c ${ntpd_config} ${ntpd_flags}" > > if checkyesno ntpd_sync_on_start; then > - rc_flags="-g $rc_flags" > + rc_flags="-q -g $rc_flags" > fi > > if [ -z "$ntpd_chrootdir" ]; then > According to ntp(8), -q makes ntpd exits just after the first time the clock is set. Doesn't this mean if ntpd_sync_on_start is on and the time difference is large, then ntpd will exit after the first time sync? Is this the behavior we really want? Shouldn't we keep ntp running after the clock is adjusted? Thanks, Rong-En Fan