Personal tools
You are here: Home Linux Setting up ntpd

 

Document Actions

Setting up ntpd

by Mark Allen last modified 2008-02-16 20:53

A quick way to setup ntpd to set the system and hardware clock

On a Redhat system (Redhat, CentOS, Fedora or Oracle Linux) edit the /etc/sysconfig/ntpd file:

  • Change:

SYNC_HWCLOCK=no

to

SYNC_HWCLOCK=yes

  • Add:
-x to OPTIONS so that the clock will be set every time ntpd is started

OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid -x"

Now make sure that ntpd is running

/sbin/chkconfig --level 2345 ntpd on

/sbin/service ntpd start

Ads
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: