{"data":{"markdownRemark":{"html":"<h3 id=\"after-changes-to-the-ntp-configuration-file-usually-ntpconf-the-ntp-service-needs-to-be-restarted-lets-find-out-how-to-do-that\"><a href=\"#after-changes-to-the-ntp-configuration-file-usually-ntpconf-the-ntp-service-needs-to-be-restarted-lets-find-out-how-to-do-that\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>After changes to the NTP configuration file (usually ntp.conf) the NTP service needs to be restarted. Lets find out how to do that</h3>\n<p>The exact command depends on your Linux distribution.</p>\n<h3 id=\"the-ntp-service-on-your-machine-could-be-any-one-of-the-following\"><a href=\"#the-ntp-service-on-your-machine-could-be-any-one-of-the-following\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>The NTP service on your machine could be any one of the following:</h3>\n<ul>\n<li>ntpd ( you probably need this one on most Linux distro's )</li>\n<li>xntpd</li>\n<li>openntpd</li>\n</ul>\n<h4 id=\"debian-or-ubuntu-based-systems-older-versions\"><a href=\"#debian-or-ubuntu-based-systems-older-versions\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Debian or Ubuntu based systems (older versions)</h4>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\"> sudo service ntp restart</code></pre></div>\n<h4 id=\"debian-9x-or-ubuntu-1604-lts-based-systems\"><a href=\"#debian-9x-or-ubuntu-1604-lts-based-systems\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Debian 9.x+ or Ubuntu 16.04+ LTS based systems</h4>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">sudo systemctl restart ntp</code></pre></div>\n<h4 id=\"red-hat-or-fedora-or-centos-older-versions\"><a href=\"#red-hat-or-fedora-or-centos-older-versions\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Red Hat or Fedora or CentOs (older versions)</h4>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">sudo service ntpd restart</code></pre></div>\n<h4 id=\"red-hat-or-fedora-or-centos-7x\"><a href=\"#red-hat-or-fedora-or-centos-7x\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Red Hat or Fedora or CentOs (7.x+)</h4>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">sudo systemctl restart ntpd</code></pre></div>\n<h3 id=\"check-the-status-of-ntp-service-restart\"><a href=\"#check-the-status-of-ntp-service-restart\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Check the status of NTP service restart</h3>\n<p>Depending on if you used <code class=\"language-text\">ntp</code> or <code class=\"language-text\">ntpd</code> in the commands above, you can use the following command to check the status of the NTP service restart</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">sudo systemctl status ntp</code></pre></div>\n<p>or</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">sudo systemctl status ntpd</code></pre></div>\n<p>Today,we learned how to restart the ntp service on Linux based Distro's</p>\n<p>If Sean Helped You today, feel free to share this post or connect with us soon, available via <a href=\"mailto:seanwillhelpyou@gmail.com\">gmail</a>, <a href=\"https://app.slack.com/client/TLMMVFQ1X/CLVTNC1MM\">slack</a> or <a href=\"https://github.com/RH-sdavey/sean-will-help-you\">github</a>.\nThanks for reading!</p>","timeToRead":2,"excerpt":"After changes to the NTP configuration file (usually ntp.conf) the NTP service needs to be restarted. Lets find out how to do that The exact…","frontmatter":{"title":"How to restart Linux NTPD service","cover":"https://picsum.photos/id/357/2500/1000","date":"2019-05-02","category":"sysadmin","tags":["Ntpd","Ntp","Services","Linux","Easy"],"author":"Endless"},"fields":{"slug":"/how-to-restart-linux-ntpd-service"}},"prev":{"excerpt":"In this tutorial I'd like to try something a little different, lets write a script together 👍 Normally I would…","frontmatter":{"title":"Lets create a script to get all user information, together","cover":"https://picsum.photos/id/41/2500/1000","date":"2019-06-03"},"fields":{"slug":"/lets-create-a-script-to-get-all-user-information-together"}},"next":{"excerpt":"This tutorial will show you how to work with multiple tabs open within one VIM session. If you're not so sure…","frontmatter":{"title":"How to work with tabs in VIM","cover":"https://picsum.photos/id/308/2500/1000","date":"2019-04-01"},"fields":{"slug":"/how-to-work-with-tabs-in-vim"}},"authors":{"edges":[{"node":{"uid":"Endless","name":"Endless","image":"https://api.adorable.io/avatars/285/pwpwpw.png","url":"https://github.com/RH-sdavey/sean-will-help-you","bio":"Endless Will Help You"}},{"node":{"uid":"Weez","name":"Salloweezy","image":"https://api.adorable.io/avatars/124/weezzzy.png","url":"http://gatsbyjs.org/","bio":"."}},{"node":{"uid":"Sean","name":"Sean","image":"https://api.adorable.io/avatars/124/weez.png","url":"https://github.com/RH-sdavey/sean-will-help-you","bio":"SEAN User created for SWHY"}},{"node":{"uid":"casper","name":"Casper User","image":"https://api.adorable.io/avatars/124/seasz.png","url":"http://gatsbyjs.org/","bio":"Yeah, I like animals better than people sometimes... Especially dogs. Dogs are the best. Every time you come home, they act like they haven't seen you in a year. And the good thing about dogs... is they got different dogs for different people."}},{"node":{"uid":"guinevere","name":"Guinevere Kuiper","image":"https://api.adorable.io/avatars/282/seaszss.png","url":"https://randomuser.me/api/?seed=user1","bio":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam laoreet lorem nec ligula aliquet, porta blandit augue luctus. Vivamus ac quam diam. Sed vestibulum pharetra hendrerit."}}]}},"pageContext":{"slug":"/how-to-restart-linux-ntpd-service","total":12,"prev":"/lets-create-a-script-to-get-all-user-information-together","next":"/how-to-work-with-tabs-in-vim"}}