{"id":6730,"date":"2017-05-08T16:57:24","date_gmt":"2017-05-08T08:57:24","guid":{"rendered":"http:\/\/rmohan.com\/?p=6730"},"modified":"2017-05-08T16:57:24","modified_gmt":"2017-05-08T08:57:24","slug":"centos-rhel-7-enable-ntp-to-start-at-boot-after-fresh-install-disable-chrony","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6730","title":{"rendered":"CentOS \/ RHEL 7 : Enable NTP to start at boot after fresh install (disable chrony)"},"content":{"rendered":"<p>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.<\/p>\n<p># systemclt status ntpd.service<br \/>\nntpd.service &#8211; Network Time Service<br \/>\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/ntpd.service; enabled)<br \/>\n   Active: inactive (dead)<br \/>\nEven 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<br \/>\nIn case you want to use NTP only, then below is the procedure to do so :<\/p>\n<p>Please follow steps below to enable NTP service on RHEL 7:<br \/>\n1. Disable chronyd service.<br \/>\nTo stop chronyd, issue the following command as root:<\/p>\n<p># systemctl stop chronyd<br \/>\nTo prevent chronyd from starting automatically at system start, issue the following command as root:<\/p>\n<p># systemctl disable chronyd<br \/>\n2. Install ntp using yum:<\/p>\n<p># yum install ntp<br \/>\n3. Then enable and start ntpd service:<\/p>\n<p># systemctl enable ntpd.service<br \/>\n# systemctl start ntpd.service<br \/>\n4. Reboot and verify.<\/p>\n<p># systemctl status ntpd.service<br \/>\nntpd.service &#8211; Network Time Service<br \/>\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/ntpd.service; enabled)<br \/>\n   Active: active (running) since Fri 2015-01-09 16:14:00 EST; 53s ago<br \/>\n  Process: 664 ExecStart=\/usr\/sbin\/ntpd -u ntp:ntp $OPTIONS (code=exited, status=0\/SUCCESS)<br \/>\n Main PID: 700 (ntpd)<br \/>\n   CGroup: \/system.slice\/ntpd.service<br \/>\n           ??700 \/usr\/sbin\/ntpd -u ntp:ntp -g<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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.<\/p>\n<p># systemclt status ntpd.service ntpd.service &#8211; Network Time Service Loaded: loaded (\/usr\/lib\/systemd\/system\/ntpd.service; enabled) Active: inactive (dead) Even when [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6730"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6730"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6730\/revisions"}],"predecessor-version":[{"id":6731,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6730\/revisions\/6731"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}