<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NTP | LogikDevelopment</title>
	<atom:link href="https://www.logikdev.com/tag/ntp/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.logikdev.com</link>
	<description>&#34;Il n&#039;y a pas de problème, il n&#039;y a que des solutions. L&#039;esprit de l&#039;homme invente ensuite le problème.&#34; André Gide</description>
	<lastBuildDate>Tue, 25 Apr 2017 13:57:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>
	<item>
		<title>ntpd process on D-Link DNS-313</title>
		<link>https://www.logikdev.com/2011/01/10/ntpd-process-on-dlink-dns313/</link>
					<comments>https://www.logikdev.com/2011/01/10/ntpd-process-on-dlink-dns313/#comments</comments>
		
		<dc:creator><![CDATA[smoreau]]></dc:creator>
		<pubDate>Mon, 10 Jan 2011 19:50:51 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[D-Link]]></category>
		<category><![CDATA[DNS-313]]></category>
		<category><![CDATA[DNS-323]]></category>
		<category><![CDATA[fun_plug]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[NTP]]></category>
		<category><![CDATA[ntpd]]></category>
		<category><![CDATA[shell]]></category>
		<guid isPermaLink="false">https://www.logikdev.com/?p=992</guid>

					<description><![CDATA[<p>During the configuration of a D-Link DNS-313 which is basically a NAS (Network-Attached Storage), I got a serious but easy-to-fix problem. 🙂 In order to get access to the box by command line, I installed the Fonz fun_plug. I then wanted to automatically synchronise the internal time with some NTP Pool Time Servers. But, for [&#8230;]</p>
<p>The post <a href="https://www.logikdev.com/2011/01/10/ntpd-process-on-dlink-dns313/">ntpd process on D-Link DNS-313</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>During the configuration of a <strong><a href="http://dlink.co.uk/cs/Satellite?c=Product_C&amp;childpagename=DLinkEurope-GB%2FDLProductCarouselMultiple&amp;cid=1197319418492&amp;p=1197318962342&amp;packedargs=ParentPageID%3D1197318962321%26TopLevelPageProduct%3DConsumer%26locale%3D1195806691854%26packedargs%3DProductParentID%253D1195808623796&amp;pagename=DLinkEurope-GB%2FDLWrapper">D-Link DNS-313</a></strong> which is basically a NAS (<a href="http://en.wikipedia.org/wiki/Network-attached_storage">Network-Attached Storage</a>), I got a serious but easy-to-fix problem. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>In order to get access to the box by command line, I installed the <a href="http://www.inreto.de/dns323/fun-plug/0.5/">Fonz fun_plug</a>. I then wanted to automatically synchronise the internal time with some <a href="http://support.ntp.org/bin/view/Servers/NTPPoolServers">NTP Pool Time Servers</a>. But, for some reason, the version of the <code>ntpd</code> process provided with fun_plug is completely freezing the NAS. I wasn&#8217;t able to find the root cause of it, trust me, I tried everything I could think of!<br />
Please also note that the same process is working perfectly fine on his brother, the <strong><a href="http://dlink.co.uk/cs/Satellite?c=Product_C&amp;childpagename=DLinkEurope-GB%2FDLProductCarouselMultiple&amp;cid=1197319419183&amp;p=1197318962342&amp;packedargs=ParentPageID%3D1197318962321%26TopLevelPageProduct%3DConsumer%26locale%3D1195806691854%26packedargs%3DProductParentID%253D1195808623796&amp;pagename=DLinkEurope-GB%2FDLWrapper">D-Link DNS-323</a></strong>. As I said, I can&#8217;t explain why&#8230; <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f644.png" alt="🙄" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>But there is a good news! The <code>ntpd</code> process is actually part of the D-Link DNS-313 firmware. And it is working fine! <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /> After double-checking, this process is however NOT part of the D-Link DNS-323 firmware. Why is that? Maybe D-Link got complaints from DNS-313 users and fixed it? Who knows&#8230;</p>
<p>Anyway, in order to get the <code>ntpd</code> process to work on the D-Link DNS-313, you need to replace the content of your <code>ntpd</code> startup script (<code>/ffp/start/ntpd.sh</code>) by the one below:</p>
<pre class="brush: bash; title: ; notranslate">
#!/ffp/bin/sh

# PROVIDE: ntpd
# REQUIRE: SERVERS
# BEFORE: LOGIN

. /ffp/etc/ffp.subr

name=&quot;ntpd&quot;
command=&quot;/usr/sbin/ntpd&quot;
ntpd_flags=&quot;-f /ffp/etc/ntpd.conf&quot;
required_files=&quot;/ffp/etc/ntpd.conf&quot;
start_cmd=&quot;ntpd_start&quot;

ntpd_start()
{
    # remove rtc and daylight cron jobs
    crontab -l | grep -vw '/usr/sbin/daylight' | grep -vw '/usr/sbin/rtc' | crontab -

    proc_start $command
}

run_rc_command &quot;$1&quot;
</pre><p>The post <a href="https://www.logikdev.com/2011/01/10/ntpd-process-on-dlink-dns313/">ntpd process on D-Link DNS-313</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.logikdev.com/2011/01/10/ntpd-process-on-dlink-dns313/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
