On 2/24/20 11:23 AM, Bruce Dubbs via blfs-support wrote:
On 2/24/20 10:15 AM, Scott Andrews via blfs-support wrote:
On 2/24/20 10:12 AM, Bruce Dubbs via blfs-support wrote:
On 2/24/20 6:39 AM, Scott Andrews via blfs-support wrote:
On 2/23/20 10:15 PM, Bruce Dubbs via blfs-support wrote:
On 2/23/20 8:32 PM, Scott Andrews via blfs-support wrote:
On 2/23/20 7:52 PM, Scott Andrews via blfs-support wrote:
This is a corrected cron file. It seems that the perl srcipt now
requires -L flag which is the leapsecond file to update
cat > /etc/cron.monthly/ntp-leap.cron <<- EOF
#! /bin/sh
#-----------------------------------------------
#to update (each month) the leapfile
#-----------------------------------------------
/usr/sbin/update-leap -L /etc/ntp.leapseconds
EOF
chmod +x /etc/cron.monthly/ntp-leap.cron
Interesting. The man page for update-leap does not mention -L,
but I do see it in the script.
I can't find the script you refer to. Where is it?
-- Bruce
It is a script above keeps leapseconds updated via cron. It came
from osukiss.
update-leap is just a perl script that is part of ntp and appears
to be work in progress. It is suppose to read the location of the
leapsecond file from /etc/ntp.conf but it fails, that is why the
-L flag is needed. It will work given the changes that I have made
in the first and second posts.
If you configure /etc/ntp.conf with:
leapfile /var/cache/ntp/ntp.leapseconds
and run 'mkdir -p /var/cache/ntp', then no argument is needed for
update-leap.
To me, /etc is the wrong place for modifiable data.
-- Bruce
The I suggest to change the book to
leapfile /var/cache/ntp/ntp.leapseconds
Good point. I'll do that.
-- Bruce
driftfile also
driftfile /var/cache/ntp/ntp.drift
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page