nginx分支
tengine-2.1.12
configure產生的Makefile
default: build
clean:
rm -rf Makefile objs
build:
$(MAKE) -f objs/Makefile
$(MAKE) -f objs/Makefile manpage
test:
$(MAKE) -f objs/Makefile test
install:
$(MAKE) -f objs/Makefile install
dso_install:
$(MAKE) -f objs/Makefile dso_install
upgrade:
/usr/local/nginx/sbin/nginx -t
kill -USR2 `cat /usr/local/nginx/logs/nginx.pid`
sleep 1
test -f /usr/local/nginx/logs/nginx.pid.oldbin
kill -QUIT `cat /usr/local/nginx/logs/nginx.pid.oldbin`
比較優雅的是nginx的升級,先發USR2 信號,產生新的pid文件,最后將舊的pid文件刪除