<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Nginx &#1085;&#1077; "&#1091;&#1084;&#1080;&#1088;&#1072;&#1077;&#1090;" &#1082;&#1086;&#1088;&#1088;&#1077;&#1082;&#1090;&#1085;&#1086;</title>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
  margin: 5px 5px 5px 5px;
  background-color: #ffffff;
}
/* ========== Text Styles ========== */
hr { color: #000000}
span.rvts1 /* Heading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #0000ff;
}
span.rvts2 /* Subheading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #000080;
}
span.rvts3 /* Keywords */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-style: italic;
 color: #800000;
}
a.rvts4, span.rvts4 /* Jump 1 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
a.rvts5, span.rvts5 /* Jump 2 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
span.rvts6
{
 font-size: 8pt;
 font-family: 'arial';
 font-style: italic;
 color: #c0c0c0;
}
a.rvts7, span.rvts7
{
 font-size: 8pt;
 font-family: 'arial';
 color: #0000ff;
 text-decoration: underline;
}
/* ========== Para Styles ========== */
p,ul,ol /* Paragraph Style */
{
 text-align: left;
 text-indent: 0px;
 padding: 0px 0px 0px 0px;
 margin: 0px 0px 0px 0px;
}
.rvps1 /* Centered */
{
 text-align: center;
}
--></style>
</head>
<body>

<p>Здравствуйте, сообщество!</p>
<p><br></p>
<p>Возникла такая проблема:</p>
<p><br></p>
<p>Есть сервер с CentOS 5 и ужасной панелью Plesk. Plesk до сих пор не умеет дружить с nginx. Это полбеды, кое-как удалось пришить грабли к нему, заработал, nginx ставил через yum, все хорошо, все работает. Но при попытке перезапустить nginx, остановить или запустить сталкиваюсь с одним - не умирает ни мастер процесс, ни его детки.</p>
<p><br></p>
<p># ./nginx restart</p>
<p>2009/04/27 12:07:41 [info] 22153#0: the configuration file /etc/nginx/nginx.conf syntax is ok</p>
<p>2009/04/27 12:07:41 [info] 22153#0: the configuration file /etc/nginx/nginx.conf was tested successfully</p>
<p>Stopping nginx: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[ &nbsp;OK &nbsp;]</p>
<p>Starting nginx:</p>
<p><br></p>
<p>И смотрим:</p>
<p><br></p>
<p># ps -aux | grep "nginx"</p>
<p>root &nbsp; &nbsp; 22195 &nbsp;0.0 &nbsp;0.0 &nbsp; 6004 &nbsp; 580 pts/1 &nbsp; &nbsp;S+ &nbsp; 12:08 &nbsp; 0:00 grep nginx</p>
<p>root &nbsp; &nbsp; 28306 &nbsp;0.0 &nbsp;0.0 &nbsp;55888 &nbsp;1728 ? &nbsp; &nbsp; &nbsp; &nbsp;Ss &nbsp; Apr26 &nbsp; 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf</p>
<p>nginx &nbsp; &nbsp;28307 &nbsp;0.4 &nbsp;0.0 &nbsp;57600 &nbsp;4036 ? &nbsp; &nbsp; &nbsp; &nbsp;S &nbsp; &nbsp;Apr26 &nbsp; 6:22 nginx: worker process is shutting down</p>
<p>nginx &nbsp; &nbsp;28308 &nbsp;0.5 &nbsp;0.0 &nbsp;58316 &nbsp;4688 ? &nbsp; &nbsp; &nbsp; &nbsp;S &nbsp; &nbsp;Apr26 &nbsp; 8:04 nginx: worker process is shutting down</p>
<p><br></p>
<p>Nginx жив, здоров. Делаем так:</p>
<p><br></p>
<p># killall nginx</p>
<p><br></p>
<p># ./nginx start</p>
<p>Starting nginx: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[ &nbsp;OK &nbsp;]</p>
<p><br></p>
<p><br></p>
<p>Пути все проверил по конфигу и скрипту управления, все хорошо. Сервер нагружен не особо сильно - ~300 коннектов в секунду, железо современное, мощное, винты успевают.</p>
<p><br></p>
<p>В чем может быть дело ?</p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><span class=rvts6>--&nbsp;</span></p>
<p><span class=rvts6>С уважением,</span></p>
<p><span class=rvts6>&nbsp;Denis &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><a class=rvts7 href="mailto:sudo@od-news.ru">mailto:sudo@od-news.ru</a></p>

</body></html>