svn commit: r301102 - head/etc/periodic/daily

Cy Schubert cy at FreeBSD.org
Wed Jun 1 04:37:44 UTC 2016


Author: cy
Date: Wed Jun  1 04:37:43 2016
New Revision: 301102
URL: https://svnweb.freebsd.org/changeset/base/301102

Log:
  Don't rely on $ntpd_enable to periodically fetch the latest
  leapfile.
  
  Suggested by:	cperciva
  MFC after:	1 week

Modified:
  head/etc/periodic/daily/480.leapfile-ntpd

Modified: head/etc/periodic/daily/480.leapfile-ntpd
==============================================================================
--- head/etc/periodic/daily/480.leapfile-ntpd	Wed Jun  1 04:18:55 2016	(r301101)
+++ head/etc/periodic/daily/480.leapfile-ntpd	Wed Jun  1 04:37:43 2016	(r301102)
@@ -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
 	;;


More information about the svn-src-all mailing list