compile_ntp_on_centos7
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
compile_ntp_on_centos7 [2017/06/01 11:46] – admin | compile_ntp_on_centos7 [2017/06/01 12:25] – [Leapfile] admin | ||
---|---|---|---|
Line 25: | Line 25: | ||
* Extract NTPd sources:< | * Extract NTPd sources:< | ||
* Configure:< | * Configure:< | ||
- | # ./configure --enable-linuxcaps --docdir=/ | + | # ./configure --enable-linuxcaps --docdir=/ |
</ | </ | ||
* Compile:< | * Compile:< | ||
Line 57: | Line 57: | ||
====Install NTPd==== | ====Install NTPd==== | ||
- | * Install NTPd:< | + | * Install NTPd:< |
# make install | # make install | ||
</ | </ | ||
Line 64: | Line 64: | ||
* Start NTPd:< | * Start NTPd:< | ||
* Show version: < | * Show version: < | ||
- | ntpd 4.2.8p9@1.3265-o Tue Nov 22 19:49:05 UTC 2016 (1) | + | ntpd 4.2.8p10@1.3728-o Thu Jun 1 12:37:34 UTC 2017 (1) |
</ | </ | ||
====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:: | ||
+ | use Getopt:: | ||
+ | use Sys:: | ||
+ | |||
+ | |||
* Schedule retrieval of leapfile using the '' | * Schedule retrieval of leapfile using the '' | ||
#!/bin/bash | #!/bin/bash | ||
Line 83: | Line 91: | ||
systemctl start ntpd | systemctl start ntpd | ||
fi | fi | ||
- | |||
</ | </ | ||
====SystemD service==== | ====SystemD service==== |
compile_ntp_on_centos7.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1