Do we need to install a time sync service?

July 4, 2015 767 views
Linux Basics

Do we need to install a time sync service on the droplets or is the hardware clock somehow synced? Using CentOS if that's significant.

3 Answers

Type the following yum command to install ntp
```yum install ntp ntpdate ntp-doc

Turn on service, enter:

chkconfig ntpd on

Synchronize the system clock with server


Start the Deamon

/etc/init.d/ntpd start

If it works click that hearth to show me some love :-)

So, droplet clocks will drift?

  • Yes and No, it depends if you have the correct time.

    I never used CentOS so I don't know if it has a build in time sync like Debian/Ubuntu

Yes the clock in your VM will drift.
Install ntpd as @eldin suggested and you are all set.

Have another answer? Share your knowledge.