nginx-0.7.53
Michael Shadle
mike503 at gmail.com
Thu Apr 30 05:07:53 MSD 2009
basically this:
http://wiki.nginx.org/RedHatNginxInitScript
just adds an extra macro/function in there to do an nginx -t
$conffile, and adds it in appropriate places (reload, restart, start,
now upgrade as well)
also we had to add in a sleep inside of restart
restart() {
configtest || return $?
stop
sleep 3
start
}
however, i suppose depending on the signal that "stop" sends it could
be done a lot quicker (restart should force stop, which is the -QUIT i
believe?) we had issues where it seemed like sockets weren't cleaned
up fast enough or something.
On Wed, Apr 29, 2009 at 5:48 PM, Jauder Ho <lists at ruby-forum.com> wrote:
>
> Do you have a link to this?
>
>
> Michael Shadle wrote:
>> you should add in the config file checks using-t like cliff has with
>> his redhat script (was it cliff?)
>>
>> that's an awesome feature. if it fails config check it wont reload or
>> restart etc.
>
> --
> Posted via http://www.ruby-forum.com/.
>
>
More information about the nginx
mailing list