480.leapfile-ntpd revision 301577
1#!/bin/sh 2# 3# $FreeBSD: stable/10/etc/periodic/daily/480.leapfile-ntpd 301577 2016-06-08 03:08:37Z cy $ 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 86400); service ntpd onefetch) & 20 ;; 21 *) 22 service ntpd onefetch 23 ;; 24 esac 25 ;; 26esac 27 28exit $rc 29