Article 5DQ9D NTP cron job runs

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.latest?d=yIl2AUoC8zA latest?i=PB7lKJxNmdg:Vw3KgdHDgz8:F7zBnMy latest?i=PB7lKJxNmdg:Vw3KgdHDgz8:V_sGLiP latest?d=qj6IDK7rITs latest?i=PB7lKJxNmdg:Vw3KgdHDgz8:gIN9vFwPB7lKJxNmdg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments