480.leapfile-ntpd revision 294773
1294773Scy#!/bin/sh 2294773Scy# 3294773Scy# $FreeBSD: head/etc/periodic/daily/480.leapfile-ntpd 294773 2016-01-26 07:06:44Z cy $ 4294773Scy# 5294773Scy 6294773Scy# If there is a global system configuration file, suck it in. 7294773Scy# 8294773Scyif [ -r /etc/defaults/periodic.conf ] 9294773Scythen 10294773Scy . /etc/defaults/periodic.conf 11294773Scy source_periodic_confs 12294773Scyfi 13294773Scy 14294773Scycase "$daily_ntpd_leapfile_enable" in 15294773Scy [Yy][Ee][Ss]) 16294773Scy case "$daily_ntpd_avoid_congestion" in 17294773Scy [Yy][Ee][Ss]) 18294773Scy # Avoid dogpiling 19294773Scy (sleep $(jot -r 1 0 86400); service ntpd fetch) & 20294773Scy ;; 21294773Scy *) 22294773Scy service ntpd fetch 23294773Scy ;; 24294773Scy esac 25294773Scy ;; 26294773Scyesac 27294773Scy 28294773Scyexit $rc 29