Changeset View
Changeset View
Standalone View
Standalone View
etc/periodic/daily/480.leapfile-ntpd
Show All 10 Lines | then | ||||
source_periodic_confs | source_periodic_confs | ||||
fi | fi | ||||
case "$daily_ntpd_leapfile_enable" in | case "$daily_ntpd_leapfile_enable" in | ||||
[Yy][Ee][Ss]) | [Yy][Ee][Ss]) | ||||
case "$daily_ntpd_avoid_congestion" in | case "$daily_ntpd_avoid_congestion" in | ||||
[Yy][Ee][Ss]) | [Yy][Ee][Ss]) | ||||
# Avoid dogpiling | # Avoid dogpiling | ||||
(sleep $(jot -r 1 0 86400); service ntpd onefetch) & | (sleep $(jot -r 1 0 3600); service ntpd onefetch) & | ||||
;; | ;; | ||||
*) | *) | ||||
service ntpd onefetch | service ntpd onefetch | ||||
;; | ;; | ||||
esac | esac | ||||
;; | ;; | ||||
esac | esac | ||||
exit $rc | exit $rc |