svn commit: r294773 - in head/etc: . defaults periodic/daily rc.d

Cy Schubert Cy.Schubert at komquats.com
Wed Jun 1 04:38:10 UTC 2016


In message <0100015509c22d19-fb9e2052-3ab3-4f80-b697-273cebbedcb5-000000 at 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 at komquats.com> or <Cy.Schubert at cschubert.com>
FreeBSD UNIX:  <cy at FreeBSD.org>   Web:  http://www.FreeBSD.org

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




More information about the svn-src-all mailing list