ПРОЕКТЫ 


  АРХИВ 


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]

Re: Где правильно взять /etc/in it.d/nginx?


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Где правильно взять /etc/in it.d/nginx?
  • From: Andrey Zloy <andrey.zloy@xxxxxxxxx>
  • Date: Tue, 15 Jun 2010 18:32:01 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=MQS3ZMzcBcuK+XkVj3BSTYRmhRmZDqMZ9JIbM2vlLH8=; b=VVMBGwt4uMCRV4DY38Cq7nMqNHVuNHB8ki2N8esPXQYfQfXbFkDSzl34KnN8B1nVls 2jMkCczfyFguQzQ1DiHAVibbK+DsQs6MFtZ6ku8UGE8iiX9xHTxnrRWtxwwaT00fAXA6 FZZM6/BRGJy2T0kU/VRZOCKw7iLxojzwawIHI=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=gfn3H7kVQLe8kaEJ/+lmn26+XNkjQM7C6w0PCwwXp/NG7Amp8/0lZmMkPMOxjOd35J cOFXZSg55OJd1JCrp76MQowtLb5RA0UFmd3u3D2hlHqySrinzBUcsOp5WvUY4Z8Ry9CI kL+DyeJOYoW6FlkTVYV8konslzMRgMaRvM/HE=
  • In-reply-to: <4C16153C.1090001@xxxxxxxxx>
  • References: <3e74e26831d990359b833cd08bc43a32.NginxMailingListRussian@xxxxxxxxxxxxxxx> <f44164619d15910f495a64f075ed5032.NginxMailingListRussian@xxxxxxxxxxxxxxx> <4C16153C.1090001@xxxxxxxxx>

В варианте скрипта для Gentoo есть приятная реализация апгрейда
nginx'а. Предлагаю включить ее в офф.скрипт, если он будет.

upgrade() {
        configtest || return 1
        ebegin "Upgrading nginx"

        einfo "Sending USR2 to old binary"
        kill -USR2 `cat /var/run/nginx.pid` &>/dev/null

        einfo "Sleeping 3 seconds before pid-files checking"
        sleep 3

        if [ ! -f /var/run/nginx.pid.oldbin ]; then
                eerror "File with old pid not found"
                return 1
        fi

        if [ ! -f /var/run/nginx.pid ]; then
                eerror "New binary failed to start"
                return 1
        fi

        einfo "Sleeping 3 seconds before WINCH"
        sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`

        einfo "Sending QUIT to old binary"
        kill -QUIT `cat /var/run/nginx.pid.oldbin`

        einfo "Upgrade completed"

        eend $? "Upgrade failed"
}

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


 




Copyright © Lexa Software, 1996-2009.