<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Nginx не "умирает" корректно</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: [ OK ]</p>
<p>Starting nginx:</p>
<p><br></p>
<p>И смотрим:</p>
<p><br></p>
<p># ps -aux | grep "nginx"</p>
<p>root 22195 0.0 0.0 6004 580 pts/1 S+ 12:08 0:00 grep nginx</p>
<p>root 28306 0.0 0.0 55888 1728 ? Ss Apr26 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf</p>
<p>nginx 28307 0.4 0.0 57600 4036 ? S Apr26 6:22 nginx: worker process is shutting down</p>
<p>nginx 28308 0.5 0.0 58316 4688 ? S Apr26 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: [ OK ]</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>-- </span></p>
<p><span class=rvts6>С уважением,</span></p>
<p><span class=rvts6> Denis </span><a class=rvts7 href="mailto:sudo@od-news.ru">mailto:sudo@od-news.ru</a></p>
</body></html>