Very slow startup
This change in the startup script adds an extra directory to look for stale PIDs and sockets. The find
goes diving into /var/opt/gitlab/gitlab-rails
which contains a lot of files/directories (build artifacts, container registry), delaying startup significantly (in my case by 3 hours). This is unnecessary, because the reason for the change is to look for stale gitaly PIDs in /var/opt/gitlab/gitaly
. That directory is much smaller, and should complete instantly.