summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2016-06-08 03:08:37 +0000
committercy <cy@FreeBSD.org>2016-06-08 03:08:37 +0000
commitcec071f6f8af5c2d917921a8d85b2dec79d94c61 (patch)
treed0d112bc53b28b177303ac99fb2506db563dcfb2 /etc/periodic
parent13f6239c05966efaf7e95318970d3884ee3e13ac (diff)
downloadFreeBSD-src-cec071f6f8af5c2d917921a8d85b2dec79d94c61.zip
FreeBSD-src-cec071f6f8af5c2d917921a8d85b2dec79d94c61.tar.gz
MFC r301102:
Don't rely on $ntpd_enable to periodically fetch the latest leapfile. Suggested by: cperciva
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/daily/480.leapfile-ntpd4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/periodic/daily/480.leapfile-ntpd b/etc/periodic/daily/480.leapfile-ntpd
index 8429824..5a3ccce 100755
--- a/etc/periodic/daily/480.leapfile-ntpd
+++ b/etc/periodic/daily/480.leapfile-ntpd
@@ -16,10 +16,10 @@ case "$daily_ntpd_leapfile_enable" in
case "$daily_ntpd_avoid_congestion" in
[Yy][Ee][Ss])
# Avoid dogpiling
- (sleep $(jot -r 1 0 86400); service ntpd fetch) &
+ (sleep $(jot -r 1 0 86400); service ntpd onefetch) &
;;
*)
- service ntpd fetch
+ service ntpd onefetch
;;
esac
;;
OpenPOWER on IntegriCloud