<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: nginx init.d script</title>
	<atom:link href="http://voituk.kiev.ua/2009/02/09/nginx-initd-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://voituk.kiev.ua/2009/02/09/nginx-initd-script/</link>
	<description>while ( isAlive() ) {doCode(); doFun();}</description>
	<lastBuildDate>Wed, 01 Feb 2012 08:48:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Гостъ</title>
		<link>http://voituk.kiev.ua/2009/02/09/nginx-initd-script/comment-page-1/#comment-41240</link>
		<dc:creator>Гостъ</dc:creator>
		<pubDate>Thu, 15 Oct 2009 21:19:31 +0000</pubDate>
		<guid isPermaLink="false">http://voituk.kiev.ua/?p=962#comment-41240</guid>
		<description>А при `service nginx status` у меня скрипт чудно зависает. :)
...
status() {
	status $prog
}
...
думаю нужно подправить на так:
...
ngx_status() {
	status $prog
}
...
case &quot;$1&quot; in
        ...
        status)
                ngx_status
                ;;
        ...
esac</description>
		<content:encoded><![CDATA[<p>А при `service nginx status` у меня скрипт чудно зависает. :)<br />
&#8230;<br />
status() {<br />
	status $prog<br />
}<br />
&#8230;<br />
думаю нужно подправить на так:<br />
&#8230;<br />
ngx_status() {<br />
	status $prog<br />
}<br />
&#8230;<br />
case &#8220;$1&#8243; in<br />
        &#8230;<br />
        status)<br />
                ngx_status<br />
                ;;<br />
        &#8230;<br />
esac</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Apache Tomcat init.d script &#8212; Записки искателей</title>
		<link>http://voituk.kiev.ua/2009/02/09/nginx-initd-script/comment-page-1/#comment-35040</link>
		<dc:creator>Apache Tomcat init.d script &#8212; Записки искателей</dc:creator>
		<pubDate>Tue, 28 Apr 2009 13:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://voituk.kiev.ua/?p=962#comment-35040</guid>
		<description>[...] Аналогичный init.d-скрипт для запуска nginx [...]</description>
		<content:encoded><![CDATA[<p>[...] Аналогичный init.d-скрипт для запуска nginx [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergey Matora</title>
		<link>http://voituk.kiev.ua/2009/02/09/nginx-initd-script/comment-page-1/#comment-32174</link>
		<dc:creator>Sergey Matora</dc:creator>
		<pubDate>Fri, 27 Feb 2009 16:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://voituk.kiev.ua/?p=962#comment-32174</guid>
		<description>Как я понимаю, S - start, K - kill.
K* можно конечно и не прописывать, но торда корректного стопа проги при ребуте, шотдауне не будет.

Ручками знать и уметь - это хорошо и это нужно, но update-rc.d удобнее тем что апдейтит все rcS.d кои руками править просто замахаешься.

# update-rc.d
usage: update-rc.d [-n] [-f]  remove
       update-rc.d [-n]  defaults [NN &#124; SS KK]
       update-rc.d [-n]  start&#124;stop NN runlvl [runlvl] [...] .
                -n: not really
                -f: force


С Убунту тоже не дружу, а с шапками тем более)</description>
		<content:encoded><![CDATA[<p>Как я понимаю, S &#8211; start, K &#8211; kill.<br />
K* можно конечно и не прописывать, но торда корректного стопа проги при ребуте, шотдауне не будет.</p>
<p>Ручками знать и уметь &#8211; это хорошо и это нужно, но update-rc.d удобнее тем что апдейтит все rcS.d кои руками править просто замахаешься.</p>
<p># update-rc.d<br />
usage: update-rc.d [-n] [-f]  remove<br />
       update-rc.d [-n]  defaults [NN | SS KK]<br />
       update-rc.d [-n]  start|stop NN runlvl [runlvl] [...] .<br />
                -n: not really<br />
                -f: force</p>
<p>С Убунту тоже не дружу, а с шапками тем более)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vadim Voituk</title>
		<link>http://voituk.kiev.ua/2009/02/09/nginx-initd-script/comment-page-1/#comment-32168</link>
		<dc:creator>Vadim Voituk</dc:creator>
		<pubDate>Fri, 27 Feb 2009 13:33:02 +0000</pubDate>
		<guid isPermaLink="false">http://voituk.kiev.ua/?p=962#comment-32168</guid>
		<description>@corsair
&lt;code&gt;&gt;update-rc.d
bash: update-rc.d: command not found&lt;/code&gt;

Не дружу я с вашими Debian/Ubuntu :) привык к КраснымШапкам, там все по-старинке - ручками.</description>
		<content:encoded><![CDATA[<p>@corsair<br />
<code>>update-rc.d<br />
bash: update-rc.d: command not found</code></p>
<p>Не дружу я с вашими Debian/Ubuntu :) привык к КраснымШапкам, там все по-старинке &#8211; ручками.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: corsair</title>
		<link>http://voituk.kiev.ua/2009/02/09/nginx-initd-script/comment-page-1/#comment-32165</link>
		<dc:creator>corsair</dc:creator>
		<pubDate>Fri, 27 Feb 2009 13:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://voituk.kiev.ua/?p=962#comment-32165</guid>
		<description>2Вадім
я так розумію слова man update-rc.d тобі нічого на думку не навіяли
типу взяти і почитати %))</description>
		<content:encoded><![CDATA[<p>2Вадім<br />
я так розумію слова man update-rc.d тобі нічого на думку не навіяли<br />
типу взяти і почитати %))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vadim Voituk</title>
		<link>http://voituk.kiev.ua/2009/02/09/nginx-initd-script/comment-page-1/#comment-32161</link>
		<dc:creator>Vadim Voituk</dc:creator>
		<pubDate>Fri, 27 Feb 2009 12:36:03 +0000</pubDate>
		<guid isPermaLink="false">http://voituk.kiev.ua/?p=962#comment-32161</guid>
		<description>А значат S* и K* линки? 
Я только S* создал. Для чего нужны K*?</description>
		<content:encoded><![CDATA[<p>А значат S* и K* линки?<br />
Я только S* создал. Для чего нужны K*?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergey Matora</title>
		<link>http://voituk.kiev.ua/2009/02/09/nginx-initd-script/comment-page-1/#comment-32160</link>
		<dc:creator>Sergey Matora</dc:creator>
		<pubDate>Fri, 27 Feb 2009 12:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://voituk.kiev.ua/?p=962#comment-32160</guid>
		<description>Конечно надо &quot;зарегить&quot;. В Debian GNU Linux:
man update-rc.d

Ну или руками в /etc/rc*.d/ посоздавать S* и K* линки на этот скрипт, к примеру по аналогии с присутствующими там линками Apache.</description>
		<content:encoded><![CDATA[<p>Конечно надо &#8220;зарегить&#8221;. В Debian GNU Linux:<br />
man update-rc.d</p>
<p>Ну или руками в /etc/rc*.d/ посоздавать S* и K* линки на этот скрипт, к примеру по аналогии с присутствующими там линками Apache.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iam</title>
		<link>http://voituk.kiev.ua/2009/02/09/nginx-initd-script/comment-page-1/#comment-32020</link>
		<dc:creator>Iam</dc:creator>
		<pubDate>Wed, 25 Feb 2009 14:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://voituk.kiev.ua/?p=962#comment-32020</guid>
		<description>А скрипт в директорию init.d надо просто положить, или его надо ещё и зарегить где-то, чтоб система стартовала его при запуске?</description>
		<content:encoded><![CDATA[<p>А скрипт в директорию init.d надо просто положить, или его надо ещё и зарегить где-то, чтоб система стартовала его при запуске?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vadim Voituk</title>
		<link>http://voituk.kiev.ua/2009/02/09/nginx-initd-script/comment-page-1/#comment-31929</link>
		<dc:creator>Vadim Voituk</dc:creator>
		<pubDate>Mon, 23 Feb 2009 10:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://voituk.kiev.ua/?p=962#comment-31929</guid>
		<description>Ну как минимум могли бы его положить в $prefix/sbin, как, например, это делает php-fpm</description>
		<content:encoded><![CDATA[<p>Ну как минимум могли бы его положить в $prefix/sbin, как, например, это делает php-fpm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: мимо_проходил</title>
		<link>http://voituk.kiev.ua/2009/02/09/nginx-initd-script/comment-page-1/#comment-31821</link>
		<dc:creator>мимо_проходил</dc:creator>
		<pubDate>Sat, 21 Feb 2009 21:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://voituk.kiev.ua/?p=962#comment-31821</guid>
		<description>когда собираеш из исходников, скрипт сам по себе не напишется =)</description>
		<content:encoded><![CDATA[<p>когда собираеш из исходников, скрипт сам по себе не напишется =)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

