NTP cron job runs
by newbie_1997 from LinuxQuestions.org on (#5DQ9D)
I have a task before me. It is necessary to add a task to synchronize the client with my ntp server every hour. But I have 2 ntp servers. How to set up a task so that synchronization takes place only once. For example, the first ntp-server works and synchronizes with it, but the second ntp-server does not synchronize. Or the first ntp server is turned off and then synchronization takes place with the second ntp server. How do I implement this all?
Code:* */1 * * * root /usr/sbin/ntpdate -ubv myntpserver1
* */1 * * * root /usr/sbin/ntpdate -ubv myntpserver2maybe use a script, but I don't have the experience to write it.


Code:* */1 * * * root /usr/sbin/ntpdate -ubv myntpserver1
* */1 * * * root /usr/sbin/ntpdate -ubv myntpserver2maybe use a script, but I don't have the experience to write it.