dpkg, remember that the postinst script will probably try this automatically or restart nginx. Either edit the package or don't use it unless you're sure you know what the postinst script does
USR2 signal to the master process E.G. kill -s USR2 $(cat /var/run/nginx.pid)
ps -ef|grep nginx, also, Nginx should move the old pid file to /var/run/nginx.pid.oldbin
kill -s WINCH $(cat /var/run/nginx.pid.oldbin), the old workers will gracefully close
HUP signal to the old master process, then QUIT to the new master process, and finally TERM just to make sure. kill -s HUP $(cat /var/run/nginx.pid.oldbin) && kill -s QUIT $(cat /var/run/nginx.pid) && sleep 10 && kill -s TERM $(cat /var/run/nginx.pid)
kill -s QUIT $(cat /var/run/nginx.pid.oldbin)
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.