diff options
author | Xin LI <delphij@FreeBSD.org> | 2023-12-03 07:00:32 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2023-12-06 06:34:26 +0000 |
commit | 3ef596c6e80562710da09c16558d7351749ea143 (patch) | |
tree | cc4c58b56ef7634a9107049cf9ed13b78b4a4fe9 | |
parent | e8c442442de21fb9d683690672f12dd237f983d0 (diff) | |
download | src-3ef596c6e80562710da09c16558d7351749ea143.tar.gz src-3ef596c6e80562710da09c16558d7351749ea143.zip |
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
Differential Revision: https://reviews.freebsd.org/D42875
(cherry picked from commit 3b3195f6767b39eb33b3523134ef988931c9c86d)
-rwxr-xr-x | usr.sbin/periodic/etc/daily/480.leapfile-ntpd | 4 |
1 files 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 |