Skip to content

Commit

Permalink
Merge pull request #102 from buildkite/revert-101-fix-lifecycled-shut…
Browse files Browse the repository at this point in the history
…down-pgrep

Revert "Have the lifecycled handler script look for just the build agent it is trying to shut down."
  • Loading branch information
toolmantim authored Jul 25, 2016
2 parents 86bc400 + d3ff70b commit 2cd2126
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ for i in $(seq 1 "${BUILDKITE_AGENTS_PER_INSTANCE}"); do
service "buildkite-agent-${i}" stop &

# Need to ensure it's the buildkite-agent user, so it doesn't match this lifecycld handler script
while pgrep -u buildkite-agent "buildkite-agent-${i}" > /dev/null; do
while pgrep -u buildkite-agent buildkite-agent > /dev/null; do
echo "Waiting for service buildkite-agent-${i} to have stopped..."
sleep 5
done
Expand Down

0 comments on commit 2cd2126

Please sign in to comment.