dde7644292
and checks if ntp leapfile needs fetching before entering into the anticongestion sleep. Unfortunately some ports still use their own sleeps so, this commit doesn't address the complete problem which is compounded by every port that uses its own anticongestion mechanism. Discussed with: asomers
24 lines
360 B
Bash
Executable File
24 lines
360 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# If there is a global system configuration file, suck it in.
|
|
#
|
|
if [ -r /etc/defaults/periodic.conf ]
|
|
then
|
|
. /etc/defaults/periodic.conf
|
|
source_periodic_confs
|
|
fi
|
|
|
|
case "$daily_ntpd_leapfile_enable" in
|
|
[Yy][Ee][Ss])
|
|
if service ntpd oneneedfetch; then
|
|
anticongestion
|
|
service ntpd onefetch
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
exit $rc
|