480.leapfile-ntpd revision 305746
1#!/bin/sh 2# 3# $FreeBSD: stable/10/etc/periodic/daily/480.leapfile-ntpd 305746 2016-09-12 16:55:16Z asomers $ 4# 5 6# If there is a global system configuration file, suck it in. 7# 8if [ -r /etc/defaults/periodic.conf ] 9then 10 . /etc/defaults/periodic.conf 11 source_periodic_confs 12fi 13 14case "$daily_ntpd_leapfile_enable" in 15 [Yy][Ee][Ss]) 16 case "$daily_ntpd_avoid_congestion" in 17 [Yy][Ee][Ss]) 18 # Avoid dogpiling 19 (sleep $(jot -r 1 0 3600); service ntpd onefetch) & 20 ;; 21 *) 22 service ntpd onefetch 23 ;; 24 esac 25 ;; 26esac 27 28exit $rc 29