From owner-svn-src-all@FreeBSD.ORG Wed Jan 28 07:36:37 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B0FC106564A; Wed, 28 Jan 2009 07:36:37 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id BECD08FC19; Wed, 28 Jan 2009 07:36:36 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (adsl21-232.kln.forthnet.gr [77.49.148.232]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id n0S7PiId001090 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 28 Jan 2009 09:25:49 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id n0S7Ph6G050894; Wed, 28 Jan 2009 09:25:43 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id n0S7PhdU050893; Wed, 28 Jan 2009 09:25:43 +0200 (EET) (envelope-from keramida@freebsd.org) From: Giorgos Keramidas To: Rong-en Fan References: <200901272013.n0RKDOBR095434@svn.freebsd.org> <6eb82e0901272050l6678ea37idc8ea53e948a15e5@mail.gmail.com> Date: Wed, 28 Jan 2009 09:25:42 +0200 In-Reply-To: <6eb82e0901272050l6678ea37idc8ea53e948a15e5@mail.gmail.com> (Rong-en Fan's message of "Wed, 28 Jan 2009 12:50:22 +0800") Message-ID: <87r62nnb7t.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: n0S7PiId001090 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.47, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL -0.07, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No 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-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2009 07:36:37 -0000 On Wed, 28 Jan 2009 12:50:22 +0800, Rong-en Fan wrote: > On Wed, Jan 28, 2009 at 4:13 AM, Giorgos Keramidas wrote: >> 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. Yes, you are right :) > 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? This is correct too. The effect of `ntpd_sync_on_start' is supposed to be the same as if we run `ntpdate' before the real ntpd starts, so this option only applies to the first sync-once instance of ntpd. The real ntpd starts later, and finds the clock pre-synced.