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文件删除