Don't rely on $ntpd_enable to periodically fetch the latest
leapfile. Suggested by: cperciva MFC after: 1 week
This commit is contained in:
parent
a99eb3157e
commit
054b92544e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301102
@ -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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user