http://dacxzjk3kq5mmepbdd3ai2ifynlzxsnpl2cnkfhridqfywihrfftapid.onion/help/update/zero_downtime.md
You can do this in various ways, but one
approach is to use NGINX by sending it a QUIT signal and then stopping the service.
As an example, you can do this by using the following shell script:
# Send QUIT to NGINX master process to drain and exit
NGINX_PID = $( cat /var/opt/gitlab/nginx/nginx.pid )
kill -QUIT $NGINX_PID
# Wait for drain to complete
while kill -0 $NGINX_PID 2>/dev/null ; do sleep 1 ; done
# Stop NGINX service to prevent...