<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Linux Forum &mdash; Ntpdate во время загрузки не может найти сервера]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=21273</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=21273&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Ntpdate во время загрузки не может найти сервера».]]></description>
		<lastBuildDate>Wed, 28 Mar 2012 14:13:51 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Ntpdate во время загрузки не может найти сервера]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=263851#p263851</link>
			<description><![CDATA[<p>Попроуйте прописать net.ethX как сервис и&nbsp; стартовать его в default.</p>]]></description>
			<author><![CDATA[null@example.com (Macumazan)]]></author>
			<pubDate>Wed, 28 Mar 2012 14:13:51 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=263851#p263851</guid>
		</item>
		<item>
			<title><![CDATA[Re: Ntpdate во время загрузки не может найти сервера]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=263829#p263829</link>
			<description><![CDATA[<p>+1 к запросу, мне лень копаться было, я просто IPшники вместо имён понаписал.</p>]]></description>
			<author><![CDATA[null@example.com (kessian)]]></author>
			<pubDate>Wed, 28 Mar 2012 13:18:42 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=263829#p263829</guid>
		</item>
		<item>
			<title><![CDATA[Ntpdate во время загрузки не может найти сервера]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=263827#p263827</link>
			<description><![CDATA[<p>Всех приветствую. Имеется следующая проблема: хочу сделать синхронизацию времени с интернетом во время загрузки системы, но всякий раз получаю ошибки.</p><p><strong>/var/log/rc.log</strong><br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code># /var/log/rc.log

rc default logging started at Wed Mar 28 15:34:45 2012

 * Setting console font [ter-k14n] ...
 [ ok ]
 * Starting D-BUS system messagebus ...
 [ ok ]
 * Starting ConsoleKit daemon ...
 [ ok ]
 * Starting DHCP Client Daemon ...
 [ ok ]
 * Loading lm_sensors modules...
 *   Loading coretemp ...
 [ ok ]
 *   Loading w83627ehf ...
 [ !! ]
 * Initializing sensors ...
 [ ok ]
 * Starting mysql ...
 [ ok ]
 * Mounting network filesystems ...
 [ ok ]
 * Setting clock via the NTP client &#039;sntp&#039; ...
28 Mar 15:34:49 sntp[5196]: Started sntp
28 Mar 15:34:49 sntp[5196]: Error looking up (A) time.windows.com: Temporary failure in name resolution
28 Mar 15:34:49 sntp[5196]: Error looking up (A) pool.ntp.org: Temporary failure in name resolution
28 Mar 15:34:49 sntp[5196]: Error looking up (A) europe.pool.ntp.org: Temporary failure in name resolution
Unable to resolve hostname(s)
 * Failed to set clock
 [ !! ]
 * ERROR: ntp-client failed to start
 * Doing udev cleanups
 * Setting up kdm ...
 [ ok ]
 * Starting local
 [ ok ]</code></pre></div></div></div><p><strong>/etc/conf.d/hwclock</strong><br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>/etc/conf.d/hwclock

clock=&quot;local&quot;
clock_hctosys=&quot;no&quot;
clock_systohc=&quot;yes&quot;
clock_args=&quot;&quot;</code></pre></div></div></div><p><strong>/etc/conf.d/ntp-client</strong><br /> </p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code># Command to run to set the clock initially
# Most people should just leave this line alone ...
# however, if you know what you&#039;re doing, and you
# want to use ntpd to set the clock, change this to &#039;ntpd&#039;
NTPCLIENT_CMD=&quot;sntp&quot;
 
# Options to pass to the above command
# This default setting should work fine but you should
# change the default &#039;pool.ntp.org&#039; to something closer
# to your machine.  See http://www.pool.ntp.org/ or
# try running `netselect -s 3 pool.ntp.org`.
NTPCLIENT_OPTS=&quot;-4 time.windоws.com pool.ntp.org europe.pool.ntp.org&quot;</code></pre></div></div></div><p><strong>$ rc-update</strong><br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code> $ rc-update 
           bootmisc | boot                         
          consolefont |      default                 
           consolekit |      default                 
                devfs |                       sysinit
               dhcpcd |      default                 
                dmesg |                       sysinit
           fbcondecor | boot default                 
                 fsck | boot                         
             hostname | boot                         
              hwclock | boot                         
              keymaps | boot                         
            killprocs |              shutdown        
           lm_sensors |      default                 
                local |      default                 
           localmount | boot                         
              modules | boot                         
             mount-ro |              shutdown        
                 mtab | boot                         
                mysql |      default                 
               net.lo | boot                         
             netmount |      default                 
           ntp-client |      default                 
               procfs | boot                         
                 root | boot                         
            savecache |              shutdown        
                 swap | boot                         
            swapfiles | boot                         
               sysctl | boot                         
         termencoding | boot                         
                 udev |                       sysinit
       udev-postmount |      default                 
              urandom | boot                         
                  xdm |      default                 </code></pre></div></div></div><p>Система подключена к роутеру, принимает все по dhcp, соответственно в загрузку добавлен dhcpcd. Из лога видно, что он запускается раньше, чем ntp-client, но время все равно не синхронизируется. В качестве попытки решить проблему добавил в <strong>/etc/rc.conf</strong> строчку <em>rc_depend_strict=&quot;YES&quot;</em>, но толку никакого. При этом, если сервис перезапускать командой<em> /etc/init.d/ntp-client restart</em>, все будет работать. В общем хочется совета знающих людей. Чтение handbook и gentoo-wiki не особо помогло.</p>]]></description>
			<author><![CDATA[null@example.com (SLV)]]></author>
			<pubDate>Wed, 28 Mar 2012 13:16:30 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=263827#p263827</guid>
		</item>
	</channel>
</rss>
