comparison auto/init @ 1393:d16559a1fe1e

rename upgrade to upgrade1 use -QUIT instead of -WINCH
author Igor Sysoev <igor@sysoev.ru>
date Tue, 14 Aug 2007 18:22:07 +0000
parents 511a89da35ad
children 4e05bd832e56
comparison
equal deleted inserted replaced
1392:86acec04b8b0 1393:d16559a1fe1e
53 rm -rf Makefile $NGX_OBJS 53 rm -rf Makefile $NGX_OBJS
54 54
55 upgrade: 55 upgrade:
56 $NGX_SBIN_PATH -t 56 $NGX_SBIN_PATH -t
57 57
58 # upgrade compatibility from 0.1.x to 0.2.x 58 kill -USR2 \`cat $NGX_PID_PATH\`
59 sleep 1
60 test -f $NGX_PID_PATH.oldbin
61
62 kill -QUIT \`cat $NGX_PID_PATH.oldbin\`
63
64 upgrade1:
65 # upgrade 0.1.x to 0.2+
66
67 $NGX_SBIN_PATH -t
68
59 cp $NGX_PID_PATH $NGX_PID_PATH.oldbin 69 cp $NGX_PID_PATH $NGX_PID_PATH.oldbin
60 70
61 kill -USR2 \`cat $NGX_PID_PATH\` 71 kill -USR2 \`cat $NGX_PID_PATH\`
62 sleep 1 72 sleep 1
63 test -f $NGX_PID_PATH.oldbin 73 test -f $NGX_PID_PATH.oldbin
64 74
65 # upgrade compatibility from 0.1.x to 0.2.x
66 cp $NGX_PID_PATH $NGX_PID_PATH.newbin 75 cp $NGX_PID_PATH $NGX_PID_PATH.newbin
67 76
68 kill -WINCH \`cat $NGX_PID_PATH.oldbin\` 77 kill -QUIT \`cat $NGX_PID_PATH.oldbin\`
69 END 78 END