Skip to content

Commit 4a815e0

Browse files
Clemens BeckRobert Marshall
authored andcommitted
Do not scan entire /var/opt/gitlab for stale pids
Fixes slow Docker startups because the entire content of /var/opt/gitlab (including the 'gitlab-rails' directory) is scanned for pid files. Fixed by limiting the find maximum depth to 2. Changelog: fixed Closes: https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/8323 Relates: https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/6926
1 parent 3ff2e66 commit 4a815e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/assets/wrapper

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function clean_stale_pids() {
2424
# - any (s)ocket or regular (f)ile
2525
# - by the name of "*.pid" or "socket.?"
2626
# - and delete them
27-
find $x \
27+
find $x -maxdepth 4 \
2828
\( \
2929
-type f \
3030
-o -type s \

0 commit comments

Comments
 (0)