summaryrefslogtreecommitdiffhomepage
path: root/auto/init
diff options
context:
space:
mode:
Diffstat (limited to 'auto/init')
-rw-r--r--auto/init12
1 files changed, 10 insertions, 2 deletions
diff --git a/auto/init b/auto/init
index 0b33c3bc2..6c52c21a2 100644
--- a/auto/init
+++ b/auto/init
@@ -54,8 +54,16 @@ clean:
upgrade:
$NGX_SBIN_PATH -t
+
+ # upgrade compatibility from 0.1.x to 0.2.x
+ cp $NGX_PID_PATH $NGX_PID_PATH.oldbin
+
kill -USR2 \`cat $NGX_PID_PATH\`
sleep 1
- test -f $NGX_PID_PATH.newbin
- kill -WINCH \`cat $NGX_PID_PATH\`
+ test -f $NGX_PID_PATH.oldbin
+
+ # upgrade compatibility from 0.1.x to 0.2.x
+ cp $NGX_PID_PATH $NGX_PID_PATH.newbin
+
+ kill -WINCH \`cat $NGX_PID_PATH.oldbin\`
END