{"id":28,"date":"2009-08-18T15:16:52","date_gmt":"2009-08-18T21:16:52","guid":{"rendered":"http:\/\/blog.lju.ca\/?p=28"},"modified":"2011-03-17T11:39:47","modified_gmt":"2011-03-17T17:39:47","slug":"ntp-cron-job","status":"publish","type":"post","link":"https:\/\/blog.d5.ca\/?p=28","title":{"rendered":"NTP Cron Job"},"content":{"rendered":"<p>If necessary, install ntpdate and test it as follows:<\/p>\n<pre>sudo apt-get install ntp ntpdate\r\nsudo ntpdate ca.pool.ntp.org<\/pre>\n<p>Then create a daily cron script&#8230;<\/p>\n<pre>sudo vi \/etc\/cron.daily\/ntpdate.sh<\/pre>\n<p>&#8230; with the following contents:<\/p>\n<blockquote>\n<pre style=\"border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 90%; text-align: left;\">#!\/bin\/bash\r\nntpdate ca.pool.ntp.org &gt; \/dev\/null\r\nexit 0<\/pre>\n<\/blockquote>\n<p>Finally, set the execute bit for the new script and test it!<\/p>\n<pre>sudo chmod +x \/etc\/cron.daily\/ntpdate.sh\r\nsudo \/etc\/cron.daily\/ntpdate.sh<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If necessary, install ntpdate and test it as follows: sudo apt-get install ntp ntpdate sudo ntpdate ca.pool.ntp.org Then create a daily cron script&#8230; sudo vi \/etc\/cron.daily\/ntpdate.sh &#8230; with the following contents: #!\/bin\/bash ntpdate ca.pool.ntp.org &gt; \/dev\/null exit 0 Finally, set the execute bit for the new script and test it! sudo chmod +x \/etc\/cron.daily\/ntpdate.sh sudo [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[25],"tags":[29,11],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-reference","tag-cron","tag-linux"],"_links":{"self":[{"href":"https:\/\/blog.d5.ca\/index.php?rest_route=\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.d5.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.d5.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.d5.ca\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.d5.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=28"}],"version-history":[{"count":7,"href":"https:\/\/blog.d5.ca\/index.php?rest_route=\/wp\/v2\/posts\/28\/revisions"}],"predecessor-version":[{"id":157,"href":"https:\/\/blog.d5.ca\/index.php?rest_route=\/wp\/v2\/posts\/28\/revisions\/157"}],"wp:attachment":[{"href":"https:\/\/blog.d5.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.d5.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.d5.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}