3 ms·
The above steps aren't optimal. The makefile in the nginx source shows you how to do a hitless upgrade. This is what I do from the shell after correctly insta
by eggnet 15y ago
The above steps aren't optimal.
The makefile in the nginx source shows you how to do a hitless upgrade. This is what I do from the shell after correctly installing, essentially translated from the makefile.
kill -USR2 `cat /var/run/nginx.pid` && sleep 1 && test -f /var/run/nginx.pid.oldbin && kill -QUIT `cat /var/run/nginx.pid.oldbin` && echo restart successful
Obviously, modify paths to the pid files as appropriate.