Skip to content
Snippets Groups Projects
Commit af25508873e4 authored by Clemens Beck's avatar Clemens Beck
Browse files

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
parent 91129c6a304b
No related branches found
No related tags found
3 merge requests!119heptapod#1448: making Heptapod 1.1 the new oldstable,!116heptapod#1395: make 1.1 the new stable,!115Merged upstream 16.7 stable branches first commit
......@@ -24,7 +24,7 @@
# - any (s)ocket or regular (f)ile
# - by the name of "*.pid" or "socket.?"
# - and delete them
find $x \
find $x -maxdepth 4 \
\( \
-type f \
-o -type s \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment