how to make ntp run more often
I was wondering how I can run ntp on my server every 5 minutes. I looked into ntpd, but was not very helpful.
Thnaks |
you could simply add the command into your cron tab but watch out, you might get black listed by the ntp server for hitting it too often.
|
If your clock is losing time over five minutes, you are having a much more serious problem. It should be the case that your clock will run fine for a period of days without any slip. I would say at most have your cron run ntp once a day.
You can do this by entering in a bash script to run ntp into your /etc/cron.daily/ or edit the crontab for your root user to have the script in it. As eco said, if you run it too frequently you will get blocked from server access. |
Quote:
But you do need to do some configuration, and do a little work for yourself. Try here for an introduction. Just syncing with some ntp server every 5 minutes will probably get you blacklisted (you do not want that). Welcome to LQ! |
Quote:
|
Quote:
The daemon is configured to use several (five is a good starting point) time sources. The daemon decides for itself (within some limits) how often each source should be polled. There's a ton of info written on this subject. Google is your friend... |
Got it, Thanks guys
|
All times are GMT -5. The time now is 08:17 AM. |