Skip to content

Commit

Permalink
debug st2ctl saying that st2 components aren't running
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Dec 12, 2024
1 parent c2dff76 commit 00c4fdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,6 @@ jobs:
run: |
ln -s ${GITHUB_WORKSPACE}/${VIRTUALENV_DIR}/bin/st2 /usr/local/bin/st2
ln -s ${GITHUB_WORKSPACE}/st2common/bin/st2-run-pack-tests /usr/local/bin/st2-run-pack-tests
sudo ps ax
- name: Run Self-Check
env:
Expand Down
2 changes: 2 additions & 0 deletions st2common/bin/st2ctl
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ function getpids() {
COMPONENTS=${COMPONENTS}

set -x
ps ax | grep -v grep | grep -v st2ctl
for COM in ${COMPONENTS}; do
ps ax | grep -v grep | grep -v st2ctl | grep -E "(${COM}\.wsgi)|(bin/${COM})|(hubot .*${COM})"
PID=`ps ax | grep -v grep | grep -v st2ctl | grep -E "(${COM}\.wsgi)|(bin/${COM})|(hubot .*${COM})" | awk '{print $1}'`

if [[ ! -z ${PID} ]]; then
Expand Down

0 comments on commit 00c4fdc

Please sign in to comment.