set up ntpd in anacron in Redhat 6.4

I want to have my server update its time on a daily basis. The server runs 24/7 and is not rebooted.

currently i have ntpd and ntpdate installed, but not started
#chkconfig  lists them both off

the /etc/crontab is empty
there are files in /etc/cron.daily but nothing for ntpd or ntpdate

i'm thinking i need to
#service nptd start
#chkconfig ntpd on

What do I need to have it run daily?
Once it starts, can I force it to update? Right now the server is 2 minutes slow.
LVL 1
penguins_ruleAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

savoneCommented:
ntpd is a daemon, meaning it runs constantly in the background and keeps the time from drifting.  This is your best option.

Configure ntpd and then start the service and enable it on boot:

service ntpd start
chkconfig ntpd on

That's it.  You do not need to run it in a cron job, it will take care of time for you.

I believe the default ntpd configuration looks at the redhat ntp pool, which is fine.  You shouldn't need to change the configuration unless you want to do something special.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
penguins_ruleAuthor Commented:
Without booting the system after issuing these two commands, will it start updating the clock now?
0
savoneCommented:
Yes
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.