<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Gahooa Perspective &#187; nginx configuration</title>
	<atom:link href="http://blog.gahooa.com/tag/nginx-configuration/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gahooa.com</link>
	<description>Thoughts on Life, Engineering, Technology, Business, and more...</description>
	<lastBuildDate>Tue, 07 Sep 2010 03:56:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.gahooa.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/167b7031b951e9f11655a8ef27c12d71?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>The Gahooa Perspective &#187; nginx configuration</title>
		<link>http://blog.gahooa.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.gahooa.com/osd.xml" title="The Gahooa Perspective" />
	<atom:link rel='hub' href='http://blog.gahooa.com/?pushpress=hub'/>
		<item>
		<title>nginx restart error</title>
		<link>http://blog.gahooa.com/2010/02/24/nginx-restart-error/</link>
		<comments>http://blog.gahooa.com/2010/02/24/nginx-restart-error/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 03:32:10 +0000</pubDate>
		<dc:creator>Jason Garber</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[nginx configuration]]></category>
		<category><![CDATA[nginx error]]></category>

		<guid isPermaLink="false">http://blog.gahooa.com/?p=209</guid>
		<description><![CDATA[Was playing around with nginx on Centos 5 (EPEL package). Most of the time I ran: service nginx restart I would get this message in the /var/log/nginx/error.log file: panic: MUTEX_LOCK (22) [op.c:352]. After some hunting around, it appears to be a known bug in nginx (perhaps perl in nginx?)&#8230; Anyway, a simple workaround is to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&amp;blog=6218261&amp;post=209&amp;subd=gahooa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Was playing around with nginx on Centos 5 (EPEL package).</p>
<p>Most of the time I ran:</p>
<pre class="brush: plain;">service nginx restart</pre>
<p>I would get this message in the /var/log/nginx/error.log file:</p>
<pre class="brush: plain;">panic: MUTEX_LOCK (22) [op.c:352].</pre>
<p>After some hunting around, it appears to be a known bug in nginx (perhaps perl in nginx?)&#8230; Anyway, a simple workaround is to do this:</p>
<pre class="brush: plain;">
service nginx stop
service nginx start
</pre>
<p>Or, simply edit <strong>/etc/init.d/nginx, and add the sleep 1 line:</strong></p>
<pre class="brush: plain;">
51 restart() {
52     configtest || return $?
53     stop
54     sleep 1
55     start
56 }
</pre>
<p>Nice workround!</p>
<br /> Tagged: <a href='http://blog.gahooa.com/tag/nginx/'>nginx</a>, <a href='http://blog.gahooa.com/tag/nginx-configuration/'>nginx configuration</a>, <a href='http://blog.gahooa.com/tag/nginx-error/'>nginx error</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gahooa.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gahooa.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gahooa.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gahooa.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gahooa.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gahooa.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gahooa.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gahooa.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gahooa.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gahooa.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gahooa.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gahooa.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gahooa.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gahooa.wordpress.com/209/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&amp;blog=6218261&amp;post=209&amp;subd=gahooa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.gahooa.com/2010/02/24/nginx-restart-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gahooa</media:title>
		</media:content>
	</item>
	</channel>
</rss>