aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2017-10-17 01:15:13 +0000
committerCy Schubert <cy@FreeBSD.org>2017-10-17 01:15:13 +0000
commit088e763042828d9007ac631632a94b2aa48f3a82 (patch)
treedf0f75628c4a553735f0783f28d84a50be427aa0 /etc
parent8a7a65717a62ac8606b9cb342bfba4a4cdfcaa77 (diff)
downloadsrc-088e763042828d9007ac631632a94b2aa48f3a82.tar.gz
src-088e763042828d9007ac631632a94b2aa48f3a82.zip
Provide an option to run the anticongestion ntpd leapfile fetch in
the background. Original patch submitted by feld@. I added the "optional" bit. Submitted by: feld (original patch) MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=324681
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/periodic.conf2
-rwxr-xr-xetc/periodic/daily/480.leapfile-ntpd11
2 files changed, 11 insertions, 2 deletions
diff --git a/etc/defaults/periodic.conf b/etc/defaults/periodic.conf
index 801733301318..64d9ba487e10 100644
--- a/etc/defaults/periodic.conf
+++ b/etc/defaults/periodic.conf
@@ -141,6 +141,8 @@ daily_status_mail_rejects_shorten="NO" # Shorten output
# 480.leapfile-ntpd
daily_ntpd_leapfile_enable="YES" # Fetch NTP leapfile
+daily_ntpd_leapfile_background="NO" # Fetch NTP leapfile
+ # in the background
# 480.status-ntpd
daily_status_ntpd_enable="NO" # Check NTP status
diff --git a/etc/periodic/daily/480.leapfile-ntpd b/etc/periodic/daily/480.leapfile-ntpd
index 6b2a1f33f1b7..812ba610567b 100755
--- a/etc/periodic/daily/480.leapfile-ntpd
+++ b/etc/periodic/daily/480.leapfile-ntpd
@@ -13,8 +13,15 @@ fi
case "$daily_ntpd_leapfile_enable" in
[Yy][Ee][Ss])
- anticongestion
- service ntpd onefetch
+ case "$daily_ntpd_leapfile_background" in
+ [Yy][Ee][Ss])
+ (anticongestion && service ntpd onefetch) &
+ ;;
+ *)
+ anticongestion
+ service ntpd onefetch
+ ;;
+ esac
;;
esac