Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 May 2016 21:38:00 -0700
From:      Cy Schubert <Cy.Schubert@komquats.com>
To:        Colin Percival <cperciva@tarsnap.com>
Cc:        Cy Schubert <cy@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r294773 - in head/etc: . defaults periodic/daily rc.d
Message-ID:  <201606010438.u514c0r7091181@slippy.cwsent.com>
In-Reply-To: Message from Colin Percival <cperciva@tarsnap.com> of "Wed, 01 Jun 2016 02:19:28 -0000." <0100015509c22d19-fb9e2052-3ab3-4f80-b697-273cebbedcb5-000000@email.amazonses.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <0100015509c22d19-fb9e2052-3ab3-4f80-b697-273cebbedcb5-000000@ema
il.
amazonses.com>, Colin Percival writes:
> On 01/25/16 23:06, Cy Schubert wrote:
> > Author: cy
> > Date: Tue Jan 26 07:06:44 2016
> > New Revision: 294773
> > URL: https://svnweb.freebsd.org/changeset/base/294773
> > 
> > Log:
> >   Add support for automatic leap-second file updates.
> >   [...]
> > Added: head/etc/periodic/daily/480.leapfile-ntpd
> > ===========================================================================
> ===
> > --- /dev/null	00:00:00 1970	(empty, because file is newly added)
> > +++ head/etc/periodic/daily/480.leapfile-ntpd	Tue Jan 26 07:06:44 201
> 6	(r294773)
> > [...]
> > +	case "$daily_ntpd_avoid_congestion" in
> > +    	[Yy][Ee][Ss])
> > +	    # Avoid dogpiling
> > +	    (sleep $(jot -r 1 0 86400); service ntpd fetch) &
> > +	    ;;
> > +	*)
> > +	    service ntpd fetch
> > +	    ;;
> 
> Can we change this to 'service ntpd onefetch'?  If someone turns on this
> periodic script, I think it's safe to assume that they want it to run,
> even if they don't have ntpd running.  (In my case, I have some systems
> where `ntpd -q` runs from cron but I don't want to leave the daemon running
> continuously.)

Sounds good. Committed. Thanks for the suggestion.


-- 
Cheers,
Cy Schubert <Cy.Schubert@komquats.com> or <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  http://www.FreeBSD.org

	The need of the many outweighs the greed of the few.





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