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
@ -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…
x
Reference in New Issue
Block a user