Skip to content

Commit

Permalink
Fix detection of all containers being up
Browse files Browse the repository at this point in the history
  • Loading branch information
hakwerk committed Dec 14, 2024
1 parent 2898694 commit e36101b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

export PS_LABCA="bin/labca-gui"
export PS_BOULDER="bin/boulder"
export PS_BOULDER_COUNT=21
export PS_BOULDER_COUNT=24
export PS_MYSQL="mysqld"
export PS_CONTROL="tcpserver"
export PS_NGINX="nginx:"
Expand Down Expand Up @@ -40,7 +40,7 @@ count() {
;;
esac

local res=$(${prefix}ps -eo pid,cmd 2>/dev/null | grep "$pattern" | grep -v grep | wc -l)
local res=$(${prefix}ps -eo pid,cmd 2>/dev/null | grep "$pattern" | grep -v grep | grep -v "go build" | wc -l)
if [ "$pattern" == "$PS_CONSUL" ]; then
res=$(${prefix}ps -eo pid,args 2>/dev/null | grep "$pattern" | grep -v grep | wc -l)
fi
Expand Down

0 comments on commit e36101b

Please sign in to comment.