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
This commit is contained in:
parent
8a7a65717a
commit
088e763042
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=324681
@ -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
|
||||
|
@ -13,9 +13,16 @@ fi
|
||||
|
||||
case "$daily_ntpd_leapfile_enable" in
|
||||
[Yy][Ee][Ss])
|
||||
case "$daily_ntpd_leapfile_background" in
|
||||
[Yy][Ee][Ss])
|
||||
(anticongestion && service ntpd onefetch) &
|
||||
;;
|
||||
*)
|
||||
anticongestion
|
||||
service ntpd onefetch
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
exit $rc
|
||||
|
Loading…
Reference in New Issue
Block a user