<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Как перегрузить squid?]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=22805&amp;type=atom" />
	<updated>2012-06-13T14:07:53Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=22805</id>
		<entry>
			<title type="html"><![CDATA[Re: Как перегрузить squid?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=281834#p281834" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>dsplin пишет:</cite><blockquote><p>squid -k reconfigure не действует, выдает - command not found</p></blockquote></div><p>... из-за того, что бинарник squid отсутствует в PATH пользователя.</p><p>Кроме того, стоит посмотреть <br />/etc/init.d/squid<br />на предмет опции &quot;reload&quot;, или другой, выполняющей &quot;squid -k reconfigure&quot;, что не требует, в отличие от restart, полной остановки и последующего пуска сервиса.</p><p>Например, в Slackware это reload:<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"># /etc/rc.d/rc.squid help<br />usage: /etc/rc.d/rc.squid start|stop|restart|reload<br /></div></p><p>/etc/rc.d/rc.squid<br /></p><div class="codebox"><pre><code>SQUIDCMD=/usr/sbin/squid
...
squid_reload() {
  $SQUIDCMD -k reconfigure 2&gt; /dev/null
}

case &quot;$1&quot; in
...
&#039;reload&#039;)
  squid_reload
  ;;
*)
  echo &quot;usage: $0 start|stop|restart|reload&quot;
esac</code></pre></div>]]></content>
			<author>
				<name><![CDATA[bormant]]></name>
				<uri>https://linuxforum.ru/profile.php?id=732</uri>
			</author>
			<updated>2012-06-13T14:07:53Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=281834#p281834</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как перегрузить squid?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=281826#p281826" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><div class="codebox"><pre><code># /etc/init.d/squid restart </code></pre></div></blockquote></div><br /><p>спасибо. помогло</p>]]></content>
			<author>
				<name><![CDATA[dsplin]]></name>
				<uri>https://linuxforum.ru/profile.php?id=22668</uri>
			</author>
			<updated>2012-06-13T13:09:07Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=281826#p281826</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как перегрузить squid?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=281793#p281793" />
			<content type="html"><![CDATA[<p>А если squid.conf был удален но сам squid еще не перезапущен. он будет работать со старыми настройками или как?</p>]]></content>
			<author>
				<name><![CDATA[dsplin]]></name>
				<uri>https://linuxforum.ru/profile.php?id=22668</uri>
			</author>
			<updated>2012-06-13T10:30:58Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=281793#p281793</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как перегрузить squid?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=281763#p281763" />
			<content type="html"><![CDATA[<p>Тут много советов:<br /><a href="http://www.opennet.ru/openforum/vsluhforumID12/1399.html">http://www.opennet.ru/openforum/vsluhfo … /1399.html</a><br />Ещё:<br /></p><div class="codebox"><pre><code># /etc/init.d/squid restart </code></pre></div>]]></content>
			<author>
				<name><![CDATA[verg]]></name>
				<uri>https://linuxforum.ru/profile.php?id=10709</uri>
			</author>
			<updated>2012-06-13T08:54:16Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=281763#p281763</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Как перегрузить squid?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=281762#p281762" />
			<content type="html"><![CDATA[<p>Всем привет. Нужна помощь. После того как я вношу изменение в squid.conf его надо перезапустить. Я этого сделать не могу. Команды типа squid -k reconfigure не действуют вы дает - command not found. Но когда перегружаю сервак изменения вступают в силу.</p>]]></content>
			<author>
				<name><![CDATA[dsplin]]></name>
				<uri>https://linuxforum.ru/profile.php?id=22668</uri>
			</author>
			<updated>2012-06-13T08:52:53Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=281762#p281762</id>
		</entry>
</feed>
