Ben Stienstra

Linux, Unix, network, radio and more...

User Tools

Site Tools


compile_ntp_on_centos7

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
compile_ntp_on_centos7 [2017/06/01 13:53]
admin [Start NTPd]
compile_ntp_on_centos7 [2017/06/01 14:25] (current)
admin [Leapfile]
Line 68: Line 68:
 ====Leapfile==== ====Leapfile====
 Make sure your server can reach time.nist.gov over FTP. Make sure your server can reach time.nist.gov over FTP.
 +
 +use Digest::SHA qw(sha1_hex);​
 +use File::Copy qw(move);
 +use File::​Fetch;​
 +use Getopt::​Long qw(:config auto_help no_ignore_case bundling);
 +use Sys::​Syslog;​
 +
 +
   * Schedule retrieval of leapfile using the ''​update-leap''​ script. For example put the script below in /​etc/​cron.weekly/​leap.sh<​code>​   * Schedule retrieval of leapfile using the ''​update-leap''​ script. For example put the script below in /​etc/​cron.weekly/​leap.sh<​code>​
 #!/bin/bash #!/bin/bash
Line 83: Line 91:
   systemctl start ntpd   systemctl start ntpd
 fi fi
- 
 </​code>​ </​code>​
 ====SystemD service==== ====SystemD service====
compile_ntp_on_centos7.txt ยท Last modified: 2017/06/01 14:25 by admin