ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Проблема с reloadom


  • To: nginx-ru@xxxxxxxxx
  • Subject: Проблема с reloadom
  • From: Алексей <systeamx@xxxxxxxxx>
  • Date: Sun, 24 Jan 2010 18:58:59 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=6C9ZyzccBm3lR3wC63z2kFDEBIM7tjyVyORmGkD5bVg=; b=rluQu8oVSG5vAP1rRfzT6FGLkVsewPkl+/16+mEDUxNjMUjc/kRMCUlq0jblos8wxM SkAVFK1pB72bHxzUhDmSD8kfDus0+P1T+enXB6fTZsVs6QUDABG4AOV9SWpH5703zY7A MTH1KHCwmg4A2S5+hm2JX+vqJ+g0Lci1I24Us=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=pc/GnzTQPIDuCdHzE1nMvhppA+8RadEFhIHRNaCNjGP9H/CKU7/ZjPd9SzgNDWh7J9 U4rWTAav/DkqTSYsMNVylZFFIV75wMQLyNjKiRJ33g5CN74uGQ6Z4WsuEf5ReSfjxbDX CKnLiAIU947o+9bJjDsjew7mJAF6OcdWhiEqY=

Добрый день,

ОС CentOS 5.4 x86_64 / kernel 2.6.18-128.2.1.el5
После добавления виртуальных хостов в vhost.conf выполняю service
nginx reload, получаю:

root@ [/etc/nginx]# service nginx reload
Reloading nginx: [  OK  ]

Но статику всё равно не отображает до команды restart. Тот же самый
init скрипт используется на других серверах, никаких проблем.
Подскажите в чём может быть проблема, пожалуйста.

init скрипт:

===================
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemon
#
# chkconfig:   - 85 15
# description:  Nginx is an HTTP(S) server, HTTP(S) reverse #               proxy and IMAP/POP3 proxy server
# processname: nginx
# config:      /etc/nginx/nginx.conf
# config:      /etc/sysconfig/nginx
# pidfile:     /var/run/nginx.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ "$NETWORKING" = "no" ] && exit 0

nginx="/usr/sbin/nginx"
prog=$(basename $nginx)

NGINX_CONF_FILE="/etc/nginx/nginx.conf"

[ -f /etc/sysconfig/nginx ] && . /etc/sysconfig/nginx

lockfile=/var/lock/subsys/nginx

start() {
    [ -x $nginx ] || exit 5
    [ -f $NGINX_CONF_FILE ] || exit 6
    echo -n $"Starting $prog: "
    daemon $nginx -c $NGINX_CONF_FILE
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    configtest_q || configtest || return 6
    stop
sleep 1
    start
}

reload() {
    configtest_q || configtest || return 6
    echo -n $"Reloading $prog: "
    killproc $nginx -HUP
    echo
}

configtest() {
  $nginx -t -c $NGINX_CONF_FILE
}

configtest_q() {
    configtest >/dev/null 2>&1
}

rh_status() {
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

# Online upgrade nginx binary on the fly, with no downtime.
# details: http://sysoev.ru/nginx/docs/control.html#upgrade
upgrade() {
    configtest_q || configtest || return 6
    echo -n $"Upgrading $prog: "
    kill -USR2 `cat /var/run/$prog.pid`
    sleep 1
    if test -f /var/run/$prog.pid.oldbin
    then
        killproc -p /var/run/$prog.pid.oldbin -QUIT
        echo
    else
        failure $"$prog online upgrade"
        echo
        exit 1
    fi
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    upgrade|force-reload)
        rh_status_q || exit 7
        upgrade
        ;;
    condrestart|try-restart)
        rh_status_q || exit 7
        restart
        ;;
    restart|configtest)
        $1
        ;;
    status|status_q)
        rh_$1
        ;;
    *)
        echo $"Usage: $0
{start|stop|reload|force-reload|restart|try-restart|status|configtest}"
        exit 2
esac

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.