Created
January 8, 2015 20:43
-
-
Save danish-rehman/8de47ae30aa16ac5caa8 to your computer and use it in GitHub Desktop.
NTP Source code and Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change master NTP server | |
>> vim /etc/ntp.conf | |
server node2.test1.usc558l | |
# Change source code for ntpupdate | |
>> vim ntpdate / ntpdate.c | |
grep "static int clock_adjust(void)" | |
# Change source code to stop NTP from changing time | |
# Add "return 0" as soon as the function | |
# clock_local() starts | |
>> vim ntpd/ntp_loopfilter.c | |
grep "clock_local()" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment