From owner-svn-src-head@freebsd.org Tue Oct 17 01:15:14 2017 Return-Path: Delivered-To: svn-src-head@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 EC2A6E4A79E; Tue, 17 Oct 2017 01:15:14 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B99B375201; Tue, 17 Oct 2017 01:15:14 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v9H1FDu6046663; Tue, 17 Oct 2017 01:15:13 GMT (envelope-from cy@FreeBSD.org) Received: (from cy@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v9H1FDbU046661; Tue, 17 Oct 2017 01:15:13 GMT (envelope-from cy@FreeBSD.org) Message-Id: <201710170115.v9H1FDbU046661@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cy set sender to cy@FreeBSD.org using -f From: Cy Schubert Date: Tue, 17 Oct 2017 01:15:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r324681 - in head/etc: defaults periodic/daily X-SVN-Group: head X-SVN-Commit-Author: cy X-SVN-Commit-Paths: in head/etc: defaults periodic/daily X-SVN-Commit-Revision: 324681 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Oct 2017 01:15:15 -0000 Author: cy Date: Tue Oct 17 01:15:13 2017 New Revision: 324681 URL: https://svnweb.freebsd.org/changeset/base/324681 Log: Provide an option to run the anticongestion ntpd leapfile fetch in the background. Original patch submitted by feld@. I added the "optional" bit. Submitted by: feld (original patch) MFC after: 2 weeks Modified: head/etc/defaults/periodic.conf head/etc/periodic/daily/480.leapfile-ntpd Modified: head/etc/defaults/periodic.conf ============================================================================== --- head/etc/defaults/periodic.conf Tue Oct 17 01:12:17 2017 (r324680) +++ head/etc/defaults/periodic.conf Tue Oct 17 01:15:13 2017 (r324681) @@ -141,6 +141,8 @@ daily_status_mail_rejects_shorten="NO" # Shorten out # 480.leapfile-ntpd daily_ntpd_leapfile_enable="YES" # Fetch NTP leapfile +daily_ntpd_leapfile_background="NO" # Fetch NTP leapfile + # in the background # 480.status-ntpd daily_status_ntpd_enable="NO" # Check NTP status Modified: head/etc/periodic/daily/480.leapfile-ntpd ============================================================================== --- head/etc/periodic/daily/480.leapfile-ntpd Tue Oct 17 01:12:17 2017 (r324680) +++ head/etc/periodic/daily/480.leapfile-ntpd Tue Oct 17 01:15:13 2017 (r324681) @@ -13,8 +13,15 @@ fi case "$daily_ntpd_leapfile_enable" in [Yy][Ee][Ss]) - anticongestion - service ntpd onefetch + case "$daily_ntpd_leapfile_background" in + [Yy][Ee][Ss]) + (anticongestion && service ntpd onefetch) & + ;; + *) + anticongestion + service ntpd onefetch + ;; + esac ;; esac