From nobody Sun Dec 3 07:01:22 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Sjd4f2mgtz51lMt; Sun, 3 Dec 2023 07:01:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sjd4f2MWgz3C2l; Sun, 3 Dec 2023 07:01:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701586882; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M9eUkwoV7+zvtDBhzHguI8fYCb5IDo+fjicaVuNMJ4Y=; b=I6xnCaV+vaYNyQRa87o81ghEpoa8+VIp96qdvrphxfDn/O4XK2X6XQT8PFlGwGkvZg8epH BFyEtJlr51RoJXGee8gx9GyOffhXAT/iT19WGGv06Ae8Qv2h8mL34GAXyqxWF85QEZ7EW7 EAPGpV2bMVd8w4EXx6bsU9VFwjum/x8Ks9G/RMtQ/mH/caFlTC4Yi6da0uW0Bnz/ONal9/ 4QA0xL+dgdUHn5LnPJ0FH+rLRF7+ZWK4cUBcPX3crM05McwI6lKGTz5DgenmK2pKAJtsYg Bz2jfCplYcWA1ZvG6c88Cxjm4eBKTaXRO3T4H18HDbZ/N2HcEdIiRD6mw21Csg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701586882; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M9eUkwoV7+zvtDBhzHguI8fYCb5IDo+fjicaVuNMJ4Y=; b=F4NBVPhTMBYw7eUuVQbxtt3fWXcs04bi4Jj95pBpHol2gW/b+0bPVD1jcOsduvglRIL9W9 ikWwaCbHIglxln/qQ+0sLR0FTVRWOdYdA1hEsHfykUNZvsmmXmcTJBkTZZ4jQ+j4KjD/eD 9WxXJ0VyNlI5cZm3V7tvyt/VGo8M1XEKk0SPAR9yUbacFj3e+LX7Wdj5s8AV2xwITWNnL/ pfJYI1HhHD2bihyK1vQlaR70U3iD/aPnMYrlbgVeBek3YU3NipnJ6/lkPGVeodPUMalObZ 9KfyTf9bwhvEAdj+I8kMVU7j4Ddg/0Ggjdchw3dnoZBx9tdWBJ5alAzbO7lOBw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701586882; a=rsa-sha256; cv=none; b=SFn61Haa61WQgbj2eUI4SzRtWPxBrL2dJazxCDVCmU50nEss9rt9x8qdGSHwEDvMSp+uyN jG5IGrT/vbRKHgXMu0Yvrn6EGcXQmoh32n8R27wpGlJqQGzN1HFw+MoQNlKdjlnZpV2ZH5 wG6C1BPf+cHplrgeLFBNVplLxTLSUooucXurt3m2rifopc/x6+QAloRcoRXxZFboySShQB +N5VXF7hPUFjyjNPs4NGZ5Z9sUTNW1vL4vK33woCSwY/ER1Adqu2XckVV2qVWwz3TQJric iLo5f0sspvhyPSpuulZccwzjZNpnKTapTv9Gs2LeN5Q5RZyGM/xsQzKaTzj11w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Sjd4f1StNzq44; Sun, 3 Dec 2023 07:01:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3B371MNo049556; Sun, 3 Dec 2023 07:01:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B371MA6049553; Sun, 3 Dec 2023 07:01:22 GMT (envelope-from git) Date: Sun, 3 Dec 2023 07:01:22 GMT Message-Id: <202312030701.3B371MA6049553@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Xin LI Subject: git: 3b3195f6767b - main - periodic/daily/480.leapfile-ntpd: only attempt to refresh leap-seconds.list when ntpd is enabled. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3b3195f6767b39eb33b3523134ef988931c9c86d Auto-Submitted: auto-generated The branch main has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=3b3195f6767b39eb33b3523134ef988931c9c86d commit 3b3195f6767b39eb33b3523134ef988931c9c86d Author: Xin LI AuthorDate: 2023-12-03 07:00:32 +0000 Commit: Xin LI CommitDate: 2023-12-03 07:00:32 +0000 periodic/daily/480.leapfile-ntpd: only attempt to refresh leap-seconds.list when ntpd is enabled. The leap-seconds.list is used exclusively by ntpd, therefore, do not bother to perform the fetch when ntpd is not enabled. PR: conf/275419 Reviewed by: cy, michaelo, imp MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D42875 --- usr.sbin/periodic/etc/daily/480.leapfile-ntpd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/periodic/etc/daily/480.leapfile-ntpd b/usr.sbin/periodic/etc/daily/480.leapfile-ntpd index 17db53e625f8..c7de845ea87d 100755 --- a/usr.sbin/periodic/etc/daily/480.leapfile-ntpd +++ b/usr.sbin/periodic/etc/daily/480.leapfile-ntpd @@ -12,9 +12,9 @@ fi case "$daily_ntpd_leapfile_enable" in [Yy][Ee][Ss]) - if service ntpd oneneedfetch; then + if service ntpd enabled && service ntpd needfetch; then anticongestion - service ntpd onefetch + service ntpd fetch fi ;; esac