From owner-svn-src-all@freebsd.org Wed Jun 1 04:38:10 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 665A0B58E40; Wed, 1 Jun 2016 04:38:10 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1B8421D45; Wed, 1 Jun 2016 04:38:09 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id 7xurbBSDKEWlr7xusbmAKL; Tue, 31 May 2016 22:38:03 -0600 X-Authority-Analysis: v=2.2 cv=P7p4vWIu c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=yrkiwgmsf1kA:10 a=B8ibFTVmAAAA:8 a=6I5d2MoRAAAA:8 a=BWvPGDcYAAAA:8 a=YxBL1-UpAAAA:8 a=5uTLzFdV9kutCDn2kaoA:9 a=xvSgdcfEVHFitugM1GHH:22 a=IjZwj45LgO3ly-622nXo:22 a=pxhY87DP9d2VeQe4joPk:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id E4FE213782; Tue, 31 May 2016 21:38:00 -0700 (PDT) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id u514c0r7091181; Tue, 31 May 2016 21:38:00 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201606010438.u514c0r7091181@slippy.cwsent.com> X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Colin Percival cc: Cy Schubert , 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 In-Reply-To: Message from Colin Percival of "Wed, 01 Jun 2016 02:19:28 -0000." <0100015509c22d19-fb9e2052-3ab3-4f80-b697-273cebbedcb5-000000@email.amazonses.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 31 May 2016 21:38:00 -0700 X-CMAE-Envelope: MS4wfL8G/xdr4PNnT3s1V3/UyvKDidwUu4Mem2iQ8sYqxOFwAmrnmI6MepvMMSTANl366KQjwpN5RCBwBq/zxYf4+JGyIMfBeT5bJuoGw9ZRW5B/kQRYahnJ gCCY5jE1evUc+VWVGc5bo6XWVuQOsC+nVhM5bEV68KuYyh5b/7PEI/XyFSFaRj/hAl/ZOS8mWhH0Ed+6+cazr9siqHwzsl4hwr4seJXA8GMTuSXRVzE0HFMs 7A2R7cIAWoCOoTQ0o8rHn7dOfPMe6AWiddEt20Wh74FXTYHJR0PPFRbjbhgsDOPA3e/y2iujG8VEde2+zmC3/Q== X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 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, 01 Jun 2016 04:38:10 -0000 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 or FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.