mirror of
https://github.com/nginx/nginx.git
synced 2025-07-22 04:18:34 +08:00
r1394 merge:
rename upgrade to upgrade1 use -QUIT instead of -WINCH
This commit is contained in:
parent
72963cd4e7
commit
6883bc72c5
15
auto/init
15
auto/init
@ -55,15 +55,24 @@ clean:
|
|||||||
upgrade:
|
upgrade:
|
||||||
$NGX_SBIN_PATH -t
|
$NGX_SBIN_PATH -t
|
||||||
|
|
||||||
# upgrade compatibility from 0.1.x to 0.2.x
|
kill -USR2 \`cat $NGX_PID_PATH\`
|
||||||
|
sleep 1
|
||||||
|
test -f $NGX_PID_PATH.oldbin
|
||||||
|
|
||||||
|
kill -QUIT \`cat $NGX_PID_PATH.oldbin\`
|
||||||
|
|
||||||
|
upgrade1:
|
||||||
|
# upgrade 0.1.x to 0.2+
|
||||||
|
|
||||||
|
$NGX_SBIN_PATH -t
|
||||||
|
|
||||||
cp $NGX_PID_PATH $NGX_PID_PATH.oldbin
|
cp $NGX_PID_PATH $NGX_PID_PATH.oldbin
|
||||||
|
|
||||||
kill -USR2 \`cat $NGX_PID_PATH\`
|
kill -USR2 \`cat $NGX_PID_PATH\`
|
||||||
sleep 1
|
sleep 1
|
||||||
test -f $NGX_PID_PATH.oldbin
|
test -f $NGX_PID_PATH.oldbin
|
||||||
|
|
||||||
# upgrade compatibility from 0.1.x to 0.2.x
|
|
||||||
cp $NGX_PID_PATH $NGX_PID_PATH.newbin
|
cp $NGX_PID_PATH $NGX_PID_PATH.newbin
|
||||||
|
|
||||||
kill -WINCH \`cat $NGX_PID_PATH.oldbin\`
|
kill -QUIT \`cat $NGX_PID_PATH.oldbin\`
|
||||||
END
|
END
|
||||||
|
Loading…
Reference in New Issue
Block a user