aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/periodic
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2023-12-03 07:00:32 +0000
committerXin LI <delphij@FreeBSD.org>2023-12-03 07:00:32 +0000
commit3b3195f6767b39eb33b3523134ef988931c9c86d (patch)
tree3e3c92c529f5ed6fb1640d354a5cfa297dc6ca4d /usr.sbin/periodic
parent06c083f79dd74ba2fcadccbc1b338b8db7f35ef8 (diff)
downloadsrc-3b3195f6767b39eb33b3523134ef988931c9c86d.tar.gz
src-3b3195f6767b39eb33b3523134ef988931c9c86d.zip
Diffstat (limited to 'usr.sbin/periodic')
-rwxr-xr-xusr.sbin/periodic/etc/daily/480.leapfile-ntpd4
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