The code still is called only if $daily_ntpd_leapfile_enable is YES and
it is NO by default.

On 08.06.2016 6:08, Cy Schubert wrote:
> Author: cy
> Date: Wed Jun  8 03:08:37 2016
> New Revision: 301577
> URL: https://svnweb.freebsd.org/changeset/base/301577
> 
> Log:
>   MFC r301102:
>   
>   Don't rely on $ntpd_enable to periodically fetch the latest leapfile.
>   
>   Suggested by:       cperciva
> 
> Modified:
>   stable/10/etc/periodic/daily/480.leapfile-ntpd
> Directory Properties:
>   stable/10/   (props changed)
> 
> Modified: stable/10/etc/periodic/daily/480.leapfile-ntpd
> ==============================================================================
> --- stable/10/etc/periodic/daily/480.leapfile-ntpd    Wed Jun  8 02:39:10 
> 2016        (r301576)
> +++ stable/10/etc/periodic/daily/480.leapfile-ntpd    Wed Jun  8 03:08:37 
> 2016        (r301577)
> @@ -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
>       ;;
> 

_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to