From owner-svn-src-all@freebsd.org Wed Jun 1 02:19:35 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 1BDE3B56040 for ; Wed, 1 Jun 2016 02:19:35 +0000 (UTC) (envelope-from 0100015509c222f8-c06226e9-5bcb-446f-8fe4-d87e55e296c6-000000@amazonses.com) Received: from a8-56.smtp-out.amazonses.com (a8-56.smtp-out.amazonses.com [54.240.8.56]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D708B1EDD for ; Wed, 1 Jun 2016 02:19:34 +0000 (UTC) (envelope-from 0100015509c222f8-c06226e9-5bcb-446f-8fe4-d87e55e296c6-000000@amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=vnqrkfnvu6csdl6mwgk5t6ix3nnepx57; d=tarsnap.com; t=1464747565; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=TEF59BL9KJ2qeIr4ow1r7IALSQCgfeIGyIkCL3ORPPU=; b=OErdKbREHMJcNwEn3f8sVYqu93ttEMI/d9jw+eCcz2rg5GT0H+aByIsdRvrzpIom KH2+zDpJAgmO1BF47y66b6ArxwzBRhP4nn9HBvjEO5+mYW5vXoRtZKeKf0Ear7JwkwR ljONlN41W+enTUojV9X5zJveHxqUlAQXajt764lU= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1464747565; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=TEF59BL9KJ2qeIr4ow1r7IALSQCgfeIGyIkCL3ORPPU=; b=0xax4vdEQC8NFbijjp/pCnzQoorWREUjPWM1wq+ZA/BBXD1QUKnnrWw3rcWMaE49 f8uIt1vOr46RUK6InIa7fiN5FAtiwiPWirZC4iP2F1lW4jybwN06upyTofPr5tmi0+O sv29yq5Wk0BpilZkNCumsIpOYpcYTe4twd1baMrw= Subject: Re: svn commit: r294773 - in head/etc: . defaults periodic/daily rc.d To: Cy Schubert , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201601260706.u0Q76iWk015311@repo.freebsd.org> From: Colin Percival Message-ID: <0100015509c222f8-c06226e9-5bcb-446f-8fe4-d87e55e296c6-000000@email.amazonses.com> Date: Wed, 1 Jun 2016 02:19:25 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <201601260706.u0Q76iWk015311@repo.freebsd.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SES-Outgoing: 2016.06.01-54.240.8.56 Feedback-ID: 1.us-east-1.Lv9FVjaNvvR5llaqfLoOVbo2VxOELl7cjN0AOyXnPlk=:AmazonSES 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 02:19:35 -0000 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 2016 (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.) -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid