Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2016 10:18:37 -0400
From:      Ernie Luzar <luzar722@gmail.com>
To:        Freebsd Questions <FreeBSD-questions@freebsd.org>
Subject:   11.0 with base ntpd daily leapfile problem
Message-ID:  <5808D23D.5000306@gmail.com>

next in thread | raw e-mail | index | archive | help
Hello list;

Every morning the "ps ax" command shows these 2 tasks running.
They never change or go away until I manually kill it.


/root >ps ax
   PID TT  STAT        TIME COMMAND
---snip--
   729  -  Ss       0:35.63 /usr/sbin/ntpd -g -c /etc/ntp.conf -p 
/var/run/ntpd.
28509  -  I        0:00.00 /bin/sh /etc/periodic/daily/480.leapfile-ntpd
28512  -  I        0:00.00 sleep 84627


This is the text of the script

/root >cat /etc/periodic/daily/480.leapfile-ntpd
#!/bin/sh
#
# $FreeBSD: releng/11.0/etc/periodic/daily/480.leapfile-ntpd 301102 
2016-06-01 04:37:43Z cy $
#

# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/periodic.conf ]
then
     . /etc/defaults/periodic.conf
     source_periodic_confs
fi

case "$daily_ntpd_leapfile_enable" in
     [Yy][Ee][Ss])
	case "$daily_ntpd_avoid_congestion" in
     	[Yy][Ee][Ss])
	    # Avoid dogpiling
	    (sleep $(jot -r 1 0 86400); service ntpd onefetch) &
	    ;;
	*)
	    service ntpd onefetch
	    ;;
	esac
	;;
esac

exit $rc



I think I need to file a bug report about this.
What do I have to manually change in the script to fix this problem?

Thanks



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5808D23D.5000306>