Skip to content

Commit

Permalink
fix(docker-entrypoint): search new directory for socket cleanup (#724)
Browse files Browse the repository at this point in the history
This adapts the fix from d3411e0 to additionally search $PREFIX/sockets
for leftover unix sockets.

See also: Kong/kong#13409
  • Loading branch information
flrgh authored Oct 31, 2024
1 parent 1f5199f commit 8f0a3c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if [[ "$1" == "kong" ]]; then

# remove all dangling sockets in $PREFIX dir before starting Kong
LOGGED_SOCKET_WARNING=0
for localfile in "$PREFIX"/*; do
for localfile in "$PREFIX"/* "$PREFIX"/sockets/*; do
if [ -S "$localfile" ]; then
if (( LOGGED_SOCKET_WARNING == 0 )); then
printf >&2 'WARN: found dangling unix sockets in the prefix directory '
Expand Down
2 changes: 1 addition & 1 deletion ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if [[ "$1" == "kong" ]]; then

# remove all dangling sockets in $PREFIX dir before starting Kong
LOGGED_SOCKET_WARNING=0
for localfile in "$PREFIX"/*; do
for localfile in "$PREFIX"/* "$PREFIX"/sockets/*; do
if [ -S "$localfile" ]; then
if (( LOGGED_SOCKET_WARNING == 0 )); then
printf >&2 'WARN: found dangling unix sockets in the prefix directory '
Expand Down

0 comments on commit 8f0a3c6

Please sign in to comment.