Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2009 12:50:22 +0800
From:      Rong-en Fan <grafan@gmail.com>
To:        Giorgos Keramidas <keramida@freebsd.org>
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
Message-ID:  <6eb82e0901272050l6678ea37idc8ea53e948a15e5@mail.gmail.com>
In-Reply-To: <200901272013.n0RKDOBR095434@svn.freebsd.org>
References:  <200901272013.n0RKDOBR095434@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 28, 2009 at 4:13 AM, Giorgos Keramidas <keramida@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6eb82e0901272050l6678ea37idc8ea53e948a15e5>