• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL 7 : Enable NTP to start at boot after fresh install (disable chrony)

by admin

Chrony is introduced as new NTP client to replace the ntp as the default time syncing package since RHEL7, so if you configure NTP during the installation process, it just enables the chronyd service, not ntpd service.

# systemctl status ntpd.service
ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled)
   Active: inactive (dead)
Even when you have enabled NTP to start on boot, it will not start when chrony is enabled. So to enable NTP to start on boot, we have to disable the chrony service

In case you want to use NTP only, then below is the procedure to do so :

Please follow steps below to enable NTP service on RHEL 7:
1. Disable chronyd service.
To stop chronyd, issue the following command as root:

# systemctl stop chronyd

To prevent chronyd from starting automatically at system start, issue the following command as root:

# systemctl disable chronyd

2. Install ntp using yum:

# yum install ntp

3. Then enable and start ntpd service:

# systemctl enable ntpd.service
# systemctl start ntpd.service

4. Reboot and verify.

# systemctl status ntpd.service
ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled)
   Active: active (running) since Fri 2015-01-09 16:14:00 EST; 53s ago
  Process: 664 ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 700 (ntpd)
   CGroup: /system.slice/ntpd.service
           └─700 /usr/sbin/ntpd -u ntp:ntp -g

Filed Under: CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. How To Customize The Screensaver Options In Gnome on CentOS/RHEL 7
  2. How to Find and Delete Empty Directories and Files in Linux
  3. 18 Practical tcpdump Command Examples – A Network Sniffer Tool Primer
  4. CentOS / RHEL : How to set up chroot jail SFTP
  5. Understanding rsyslog Templates
  6. How to create a networking bridge under CentOS/RHEL
  7. What is HBA Queue Depth and How to Check the Current Queue Depth Value and how to Change it
  8. How to Use rpm2cpio Command in Linux
  9. CentOS / RHEL : How to prevent disabled repositories from being downloaded into the yum cache
  10. Rabbitmq install and management

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright